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
Python program for analyzing the output files of phonopy.

PhononTools Description Python program to analyze the results generated by phonopy. Using the .yaml and .dat files that phonopy generates one can plot

Harry LaBollita 8 Nov 27, 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
Software to help automate collecting crowdsourced annotations using Mechanical Turk.

Video Crowdsourcing Software to help automate collecting crowdsourced annotations using Mechanical Turk. The goal of this project is to enable crowdso

Mike Peven 1 Oct 25, 2021
An extremely simple package with a single utillity class used for gracefully handling POSIX shutdown signals.

graceful-killer An extremely simple package with a single utillity class used for gracefully handling POSIX shutdown signals. Installation Use pip to

Sven Ćurković 1 Dec 09, 2021
🦩 A Python tool to create comment-free Jupyter notebooks.

Pelikan Pelikan lets you convert notebooks to comment-free notebooks. In other words, It removes Python block and inline comments from source cells in

Hakan Özler 7 Nov 20, 2021
API for obtaining results from the Beery-Bukenica test of the visomotor integration development (VMI) 4th edition.

VMI API API for obtaining results from the Beery-Bukenica test of the visomotor integration development (VMI) 4th edition. Install docker-compose up -

Victor Vargas Sandoval 1 Oct 26, 2021
Pyfunctools is a module that provides functions, methods and classes that help in the creation of projects in python

Pyfunctools Pyfunctools is a module that provides functions, methods and classes that help in the creation of projects in python, bringing functional

Natanael dos Santos Feitosa 5 Dec 22, 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
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

Miek 1 Nov 02, 2021
A Randomizer Oracle

Tezos Randomizer Tezod Randomizer "Oracle". It's a smart contract that you can call to get a random number between X and Y (for now). It uses entropy

Asbjorn Enge 19 Sep 13, 2022
💉 코로나 잔여백신 예약 매크로 커스텀 빌드 (속도 향상 버전)

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

Queue.ri 21 Aug 15, 2022
Random Number Generator

Application for generating a random number.

Michael J Bailey 1 Oct 12, 2021
A tool for testing improper put method vulnerability

Putter-CUP A tool for testing improper put method vulnerability Usage :- python3 put.py -f live-subs.txt Result :- The result in txt file "result.txt"

Zahir Tariq 6 Aug 06, 2021
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 Container for the Dependency Injection in Python.

Python Dependency Injection library aiodi is a Container for the Dependency Injection in Python. Installation Use the package manager pip to install a

Denis NA 3 Nov 25, 2022
Monte Carlo simulation of 3G rules

mc3g Monte Carlo simulation of 3G rules This project contains the Python code to do simulations of events according to the 3G rule (in German: "Geimpf

Jan Christoph Terasa 4 Nov 01, 2021
Simple python module to get the information regarding battery in python.

Battery Stats A python3 module created for easily reading the current parameters of Battery in realtime. It reads battery stats from /sys/class/power_

Shreyas Ashtamkar 5 Oct 21, 2022
Napari plugin for loading Bitplane Imaris files .ims

napari-imaris-loader Napari plugin for loading Bitplane Imaris files '.ims'. Notes: For this plugin to work "File/Preferences/Experimental/Render Imag

Alan Watson 4 Dec 01, 2022
Standard implementations of FedLab and its provided benchmarks.

FedLab-benchmarks This repo contains standard implementations of FedLab and its provided benchmarks. Currently, following algorithms or benchrmarks ar

SMILELab-FL 104 Dec 05, 2022
Kanye West Lyrics Generator

aikanye Kanye West Lyrics Generator Python script for generating Kanye West lyrics Put kanye.txt in the same folder as the python script and run "pyth

4 Jan 21, 2022