This is Cool Utility tools that you can use in python.

Overview

Cool Utils

This is Cool Utility tools that you can use in python. There are a few tools that you might find very useful, you can use this on pretty much any project and some utils might help you a lot and save so much time since it’s a simple function. We hope you like our utils. Have a nice day!

Badges

Discord PyPi Python Version License Issues Forks Stars

Installation

PyPi Installation

Windows:

$ pip install -U cool-utils

Linux/MacOS:

$ python3 -m pip install -U cool-utils
Development Installation

Windows:

$ pip install git+https://github.com/Senarc-Studios/Cool-Utils

Linux/MacOS:

$ python3 -m pip install -U git+https://github.com/Senarc-Studios/Cool-Utils

Examples

Compile:

> Hey, This Is A String. >> 69420 ">
from utils import Compile

strings = ["This", "Is", "A", "String"]
num_list = [9, 4, 2]
print(Compile.string(strings, startwith="Hey, ", endwith=".", joints=" "))
print(Compile.numbers(num_list, startwith=6, endwith=0))
>> Hey, This Is A String.
>> 69420

JSON:

> bar >> None ">
import utils

utils.register_value(file="sample", variable="foo", value="bar") # This creates a JSON file.
data = utils.get_data(file="sample", variable="foo")
invalid_data = utils.get_data("sample", "non-existant value") # You can do this instead of doing the variable's name.
print(data)
print(invalid_data)
>> bar
>> None

Collaborators

This wouldn’t be made possible without these people

  1. BenitzCoding
  2. JDJG Inc. Official
You might also like...
SH-PUBLIC is a python based cloning script. You can clone unlimited UID facebook accounts by using this tool.

SH-PUBLIC is a python based cloning script. You can clone unlimited UID facebook accounts by using this tool. This tool works on any Android devices without root.

Utility to extract Fantasy Grounds Unity Line-of-sight and lighting files from a Univeral VTT file exported from Dungeondraft
Utility to extract Fantasy Grounds Unity Line-of-sight and lighting files from a Univeral VTT file exported from Dungeondraft

uvtt2fgu Utility to extract Fantasy Grounds Unity Line-of-sight and lighting files from a Univeral VTT file exported from Dungeondraft This program wo

A small utility that sorts your files.

FileSorter A small utility that sorts your files. TODO: Scan directory to find files(thanks @corruptmemry for this!) Split extensions to determine fil

Utility to play with ADCS, allows to request tickets and collect information about related objects.

certi Utility to play with ADCS, allows to request tickets and collect information about related objects. Basically, it's the impacket copy of Certify

jfc is an utility to make reviewing ArXiv papers for your Journal Club easier.
jfc is an utility to make reviewing ArXiv papers for your Journal Club easier.

jfc is an utility to make reviewing ArXiv papers for your Journal Club easier.

Modest utility collection for development with AIOHTTP framework.

aiohttp-things Modest utility collection for development with AIOHTTP framework. Documentation https://aiohttp-things.readthedocs.io Installation Inst

Collection of code auto-generation utility scripts for the Horizon `Boot` system module

boot-scripts This is a collection of code auto-generation utility scripts for the Horizon Boot system module, intended for use in Atmosphère. Usage Us

Build capture utility for Linux

CX-BUILD Compilation Database alternative Build Prerequisite the CXBUILD uses linux system call trace utility called strace which was customized. So I

MongoDB utility to inflate the contents of small collection to a new larger collection

MongoDB Data Inflater ("data-inflater") The data-inflater tool is a MongoDB utility to automate the creation of a new large database collection using

Comments
  • Some Changes

    Some Changes

    This leaves with a huge PR with 600+ additions and 100+ deletions.

    Here are the following list of added/deleted/modified things that apply to this PR:

    • Enforce/Follow PEP 8 (according to PyCharm) and PEP 252 with staticmethod-s and classmethod-s.
    • Changed .gitignore file to Python Gitignore.
    • Added GlobalJSON in favor of the old JSON which now supports Global and Local JSON.
    • Added MISSING in favor of doing MISSING = 0.0 instead (from discord.py).
    • Use typing overload to improve type checking and linters.
    • Added GlobalCache in favor of the old Cache which now supports Global and Local Cache.
    • Change startwith to startswith and endwith to endswith (spelling) in Compile class for the following methods:
      • Compile.string
      • Compile.to_string
      • Compile.numbers
    • Change windows commands in os.py file:
      • From python3 to py
      • From pip to py -m pip
    • Change OPTION to OPTIONS (speling).
    • Add staticmethod-s to Terminal class.
    • Use is instead of == and is not instead of != when comparing to None.
    • Change version 1.2.1.4 to 1.2.2.

    And some more that I probably forgot to note here.

    opened by proguy914629bot 0
Releases(v1.3.2)
  • v1.3.2(May 8, 2022)

    Summery

    This version has faster and better optimised code and fixes some minor bugs whilst enhancing new features and improving existing code! This version will also have more reliable Link Censors and Link Checks, it even implements a feature to add whitelists to link checks and censors.

    New Features

    • Implemented strict mode in censor in Links class. (blocks bypassing links by censoring TLDs)
    • Added Colour function to Terminal class to enable RGB Colours to Terminal Text.
    • Added whitelist lists to Links class that makes links not get detected when found.

    Breaking Changes

    • Only allowing int values on indent argument on JSON class.
    • Changed get_data function to get in JSON and GlobalJSON classes.
    • Outputting Runtime Errors on write function on JSON and GlobalJSON classes.

    Minor Changes

    • Changed indent behaviour in format function on JSON and GlobalJSON classes.

    Other Changes

    • Reimplemented how Link classes work to make it more reliable.

    Full In-dept Code Changelog: https://github.com/Senarc-Studios/Cool-Utils/compare/v1.3.0...v1.3.2

    Source code(tar.gz)
    Source code(zip)
    cool-utils-1.3.2.tar.gz(10.04 KB)
    cool_utils-1.3.2-py3-none-any.whl(17.06 KB)
  • v1.3.0(Apr 18, 2022)

    Summary

    Today, Proguy, Senarc's current CTO has contributed to code and help out Cool-Utils, he helped us a lot, please thank him with his hard work, and for a overview of all the changes, as of version 1.3.0, there is GlobalCache and GlobalJSON that is different than normal Cache and JSON, we also enforced PEP 8 and PEP 252. There is a lot of changes in the background that make this library more efficient and better than before even when there might not be changes visible. The bug causing the Colour to leak after ending Terminal has been fixed now.

    New Features

    • Added Separate Global and Local Cache.
    • Added default parameter in load function in GlobalCache and Cache classes.
    • Added GlobalJSON class.
    • Added write and _check_file method to JSON class.
    • Added more characters to characters in Links.check.
    • Added Proguy to contributor list.

    Changes

    • Enforcing PEP 8 and PEP 252
    • Use typing overload to improve type checking and linters.
    • Change startwith to startswith and endwith to endswith (spelling) in Compile class for the following methods:
      • Compile.string
      • Compile.to_string
      • Compile.numbers
    • Change windows commands in os.py file:
      • From python3 to py
      • From pip to py -m pip
    • Change OPTION to OPTIONS (spelling).
    • Add staticmethod-s in Terminal class.
    • Use is instead of == and is not instead of != when comparing to None.
    • Simplified file variable in Terminal class.
    • Changed size to _size in cache.

    Bug Fixes

    • Fixed Colour leak on Terminal.
    • Using proper MISSING instead of Constants.
    Source code(tar.gz)
    Source code(zip)
    cool-utils-1.3.0.tar.gz(9.42 KB)
    cool_utils-1.3.0-py3-none-any.whl(16.47 KB)
  • v1.2.1.4(Apr 2, 2022)

  • v1.2.1.3(Mar 27, 2022)

    New Features

    • Added Array implementations.
    • Added Dates to default time format in Terminal output functions.

    Bug Fixes

    • Errors caused by discord libraries
    • Fixed errors on output by parsing Terminal output variables as strings.
    • Syntax errors with Mongo
    • Fixed import typo.

    Breaking Changes

    • Made variables in Cache functions to accept any variable type.
    • Made variables in JSON functions to accept any variable type.
    • Removed get_env function.
    • Removed discord utils.
    Source code(tar.gz)
    Source code(zip)
    cool-utils-1.2.1.3.tar.gz(8.42 KB)
    cool_utils-1.2.1.3-py3-none-any.whl(14.63 KB)
  • v1.2.1.x(Jan 22, 2022)

  • 1.2.0(Nov 28, 2021)

    Breaking Changes

    • Renamed all the json_utils functions to start with cool_utils.JSON
    • You have to open the file before getting data or writing data to it with cool_utils.JSON.open()

    New Features

    • Added cool_utils.JSON.build()
    • Added cool_utils.Terminal.set_format()
    • Added cool_utils.Terminal.start_log()
    • Added cool_utils.Terminal.stop_log()
    • Added cool_utils.Terminal.display()
    • Added cool_utils.Terminal.warn()
    • Added cool_utils.Terminal.error()
    • Added cool_utils.Terminal.clear()
    • Added cool_utils.Mongo.connect()
    • Added cool_utils.Mongo.set_collection()
    • Added await cool_utils.Mongo.insert()
    • Added cool_utils.Mongo.find()
    • Added await cool_utils.Mongo.find_one()
    • Added await cool_utils.Mongo.update()
    • Added await cool_utils.Mongo.delete()
    Source code(tar.gz)
    Source code(zip)
    cool-utils-1.2.0.7.tar.gz(9.31 KB)
    cool_utils-1.2.0.7-py3-none-any.whl(15.90 KB)
  • 1.1.9(Nov 20, 2021)

  • 1.1.8(Nov 16, 2021)

    Summery You can now store, load, and delete cache with Cool-Utils!

    New Functions

    • utils.Cache.store()
    • utils.Cache.remove()
    • utils.Cache.size()
    • utils.Cache.clear()
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Oct 23, 2021)

  • 1.0.9(Oct 23, 2021)

  • 1.0.8(Oct 23, 2021)

  • 1.0.3(Oct 22, 2021)

    Features:

    • Compile List of strings into string. (utils.Compile.string())
    • Compile List of any items into string. (utils.Compile.to_string())
    • Compile List of numbers into 1 long number without adding them. (utils.Compile.numbers())
    • Format JSON with proper indent. (utils.format())
    • Register values into a JSON File. (utils.register_value())
    • Get values from a JSON File. (utils.get_data())
    Source code(tar.gz)
    Source code(zip)
Owner
Senarc Studios
A non-profit organisation with various projects.
Senarc Studios
A work in progress box containing various Python utilities

python-wipbox A set of modern Python libraries under development to simplify the execution of reusable routines by different projects. Table of Conten

Deepnox 2 Jan 20, 2022
Color box that provides various colors‘ rgb decimal code.

colorbox Color box that provides various colors‘ rgb decimal code

1 Dec 07, 2021
password generator

Password generator technologies used What is? It is Password generator How to Download? Download on releases Clone repo git clone https://github.com/m

1 Dec 16, 2021
Python program for Linux users to change any url to any domain name they want.

URLMask Python program for Linux users to change a URL to ANY domain. A program than can take any url and mask it to any domain name you like. E.g. ne

2 Jun 20, 2022
A thing to simplify listening for PG notifications with asyncpg

A thing to simplify listening for PG notifications with asyncpg

ANNA 18 Dec 23, 2022
A BlackJack simulator in Python to simulate thousands or millions of hands using different strategies.

BlackJack Simulator (in Python) A BlackJack simulator to play any number of hands using different strategies The Rules To keep the code relatively sim

Hamid 4 Jun 24, 2022
💉 코로나 잔여백신 예약 매크로 커스텀 빌드 (속도 향상 버전)

Korea-Covid-19-Vaccine-Reservation 코로나 잔여 백신 예약 매크로를 기반으로 한 커스텀 빌드입니다. 더 빠른 백신 예약을 목표로 하며, 속도를 우선하기 때문에 사용자는 이에 대처가 가능해야 합니다. 지정한 좌표 내 대기중인 병원에서 잔여 백신

Queue.ri 21 Aug 15, 2022
Tools for binary data on cassette

Micro Manchester Tape Storage Tools for storing binary data on cassette Includes: Python script for encoding Arduino sketch for decoding Eagle CAD fil

Zack Nelson 28 Dec 25, 2022
Python script to get some stats on nodes in a Blender material nodetree

Python script to get some stats on nodes in a Blender material nodetree. It counts the nodes, the node types and the max deep level for group nodes.

Alek Mugnozzo 2 Sep 03, 2022
New time-based UUID formats which are suited for use as a database key

uuid6 New time-based UUID formats which are suited for use as a database key. This module extends immutable UUID objects (the UUID class) with the fun

26 Dec 30, 2022
Python implementation of Gorilla time series compression

Gorilla Time Series Compression This is an implementation (with some adaptations) of the compression algorithm described in section 4.1 (Time series c

Ghiles Meddour 19 Jan 01, 2023
A program will generate a eth key pair that has the public key that starts with a defined amount of 0

ETHAdressGenerator This short program will generate a eth key pair that has the public key that starts with a defined amount of 0 Requirements Python

3 Nov 19, 2021
Bounding Boxes Python Utils

Bounding Boxes Python Utils

Vadim 4 May 01, 2022
Create password - Generate Random Password with Passphrase

Generate Random Password with Passphrase This is a python code to generate stron

1 Jan 18, 2022
Obsidian tools - a Python package for analysing an Obsidian.md vault

obsidiantools is a Python package for getting structured metadata about your Obsidian.md notes and analysing your vault.

Mark Farragher 153 Jan 04, 2023
A simple dork generator written in python that outputs dorks with the domain extensions you enter

Dork Gen A simple dork generator written in python that outputs dorks with the domain extensions you enter in a ".txt file". Usage The code is pretty

Z3NToX 4 Oct 30, 2022
A hashtag from string extract python module

A hashtag from string extract python module

Fayas Noushad 3 Aug 10, 2022
🚧Useful shortcuts for simple task on windows

Windows Manager A tool containg useful utilities for performing simple shortcut tasks on Windows 10 OS. Features Lit Up - Turns up screen brightness t

Olawale Oyeyipo 0 Mar 24, 2022
Patch the pclntable from Go binaries

Pretrain and Fine-tune a T5 model with Flax on GCP This tutorial details how pretrain and fine-tune a FlaxT5 model from HuggingFace using a TPU VM ava

6 Oct 05, 2022
python package for generating typescript grpc-web stubs from protobuf files.

grpc-web-proto-compile NOTE: This package has been superseded by romnn/proto-compile, which provides the same functionality but offers a lot more flex

Roman Dahm 0 Sep 05, 2021