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
ZX Spectrum Utilities: (zx-spectrum-utils)

Here are a few utility programs that can be used with the zx spectrum. The ZX Spectrum is one of the first home computers from the early 1980s.

Graham Oakes 4 Mar 07, 2022
Every 2 minutes, check for visa slots at VFS website

vfs-visa-slot-germany Every 2 minutes, check for visa slots at VFS website. If there are any, send a call and a message of the format: Sent from your

12 Dec 15, 2022
Greenery - tools for parsing and manipulating regular expressions

Greenery - tools for parsing and manipulating regular expressions

qntm 242 Dec 15, 2022
JeNot - A tool to notify you when Jenkins builds are done.

JeNot - Jenkins Notifications NOTE: under construction, buggy, and not production-ready What A tool to notify you when Jenkins builds are done. Why Je

1 Jun 24, 2022
A set of Python scripts to surpass human limits in accomplishing simple tasks.

Human benchmark fooler Summary A set of Python scripts with Selenium designed to surpass human limits in accomplishing simple tasks available on https

Bohdan Dudchenko 3 Feb 10, 2022
Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything.

Retrying Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just

Ray Holder 1.9k Dec 29, 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
Script to autocompound 3commas BO:SO based on user provided risk factor

3commas_compounder Script to autocompound 3commas BO:SO based on user provided risk factor Setup Step 1 git clone this repo into your working director

0 Feb 24, 2022
Skywater 130nm Klayout Device Generators PDK

Skywaters 130nm Technology for KLayout Device Generators Mabrains is excited to share with you our Device Generator Library for Skywater 130nm PDK. It

Mabrains 18 Dec 14, 2022
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

Andre Kostur 29 Dec 05, 2022
Give you a better view of your Docker registry disk usage.

registry-du Give you a better view of your Docker registry disk usage. This small tool will analysis your Docker registry(vanilla or Harbor both work)

Nova Kwok 16 Jan 07, 2023
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

2 Jun 16, 2022
a simple function that randomly generates and applies console text colors

ChangeConsoleTextColour a simple function that randomly generates and applies console text colors This repository corresponds to my Python Functions f

Mariya 6 Sep 20, 2022
A toolkit for writing and executing automation scripts for Final Fantasy XIV

XIV Scripter This is a tool for scripting out series of actions in FFXIV. It allows for custom actions to be defined in config.yaml as well as custom

Jacob Beel 1 Dec 09, 2021
These scripts look for non-printable unicode characters in all text files in a source tree

find-unicode-control These scripts look for non-printable unicode characters in all text files in a source tree. find_unicode_control.py should work w

Siddhesh Poyarekar 25 Aug 30, 2022
Implementing C++ Semantics in Python

Implementing C++ Semantics in Python

Tamir Bahar 7 May 18, 2022
A random cats photos python module

A random cats photos python module

Fayas Noushad 6 Dec 01, 2021
Auto-generate /etc/hosts for HackTheBox machines

Auto-generate /etc/hosts for HackTheBox machines Save yourself some tedium on getting started on a new machine by having your /etc/hosts ready to go.

3 Feb 16, 2022
A tool written in python to generate basic repo files from github

A tool written in python to generate basic repo files from github

Riley 7 Dec 02, 2021
Daiho Tool is a Script Gathering for Windows/Linux systems written in Python.

Daiho is a Script Developed with Python3. It gathers a total of 22 Discord tools (including a RAT, a Raid Tool, a Nuker Tool, a Token Grabberr, etc). It has a pleasant and intuitive interface to faci

AstraaDev 32 Jan 05, 2023