This is Cool Utility tools that you can use in python.
Project description
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
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:
from cool_utils import Compile
strings = ["This", "Is", "A", "String"]
num_list = [9, 4, 2]
print(Compile.string(strings, startswith="Hey, ", endswith=".", joints=" "))
print(Compile.numbers(num_list, startswith=6, endswith=0))
>> Hey, This Is A String.
>> 69420
JSON:
import cool_utils
json = cool_utils.JSON.open("sample")
json.register_value(variable="foo", value="bar") # This creates a JSON file.
data = json.get_data(variable="foo")
invalid_data = json.get_data("non-existant value") # You can do this instead of doing the variable's name.
print(data)
print(invalid_data)
>> bar
>> None
GlobalJSON:
import cool_utils
cool_utils.GlobalJSON.open("sample")
cool_utils.GlobalJSON.register_value(variable="foo", value="bar")
data = cool_utils.GlobalJSON.get_data(variable="foo")
invalid_data = cool_utils.GlobalJSON.get_data("non-existant value")
print(data)
print(invalid_data)
>> bar
>> None
Collaborators
This wouldn’t be made possible without these people
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cool-utils-1.3.2.tar.gz.
File metadata
- Download URL: cool-utils-1.3.2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bd2eab13ea5680adbfea47f0a5d8371a24fa230ccf912fc9e92de18bb3e23fc
|
|
| MD5 |
9bfb25dd791d98567dd29ced1af35a7f
|
|
| BLAKE2b-256 |
a3df8dcd2250a3a7638bab0d1aeb2901bcbf5b6f4b4b447ffe32570a5fce2fb4
|
File details
Details for the file cool_utils-1.3.2-py3-none-any.whl.
File metadata
- Download URL: cool_utils-1.3.2-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3bb9873e41e336fca3754c401b5d1192457512f0cd5cd2f7cc59856cca864e
|
|
| MD5 |
0b4f060d70ed8e455afcd98a5e544daf
|
|
| BLAKE2b-256 |
b7173eb1bbb0d2e4fc358de0229a766fef8b2b3bfd47f4f8e9187e6ea7ec615c
|