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 script to generate color coded resistor images

Resistor image generator I got nerdsniped into making this. It's not finished at all, and the code is messy. The end goal it generate a whole E-series

MichD 1 Nov 12, 2021
Extract XML from the OS X dictionaries.

Extract XML from the OS X dictionaries.

Joshua Olson 13 Dec 11, 2022
Install, run, and update apps without root and only in your home directory

Qube Apps Install, run, and update apps in the private storage of a Qube. Build and install in Qubes Get the code: git clone https://github.com/micahf

Micah Lee 26 Dec 27, 2022
JavaScript-style async programming for Python.

promisio JavaScript-style async programming for Python. Examples Create a promise-based async function using the promisify decorator. It works on both

Miguel Grinberg 191 Dec 30, 2022
A collection of resources/tools and analyses for the angr binary analysis framework.

Awesome angr A collection of resources/tools and analyses for the angr binary analysis framework. This page does not only collect links and external r

105 Jan 02, 2023
A simple, console based nHentai Code Generator

nHentai Code Generator A simple, console based nHentai Code Generator. How to run? Windows Android Windows Make sure you have python and git installed

5 Jun 02, 2022
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
Definitely legit social credit generator with python

definitely-legit-social-credit-generator I made this simple GUI program for a meme, no cap. Video: https://youtu.be/RmjxKtoli04 How to run: Clone this

Joshua Malabanan 8 Nov 01, 2021
Audio Steganography is a technique used to transmit hidden information by modifying an audio signal in an imperceptible manner.

Audio Steganography Audio Steganography is a technique used to transmit hidden information by modifying an audio signal in an imperceptible manner. Ab

Karan Yuvraj Singh 1 Oct 17, 2021
Find version automatically based on git tags and commit messages.

GIT-CONVENTIONAL-VERSION Find version automatically based on git tags and commit messages. The tool is very specific in its function, so it is very fl

0 Nov 07, 2021
✨ Un chois aléatoire d'un article sur Wikipedia totalement fait en Python par moi, et en français.

Wikipedia Random Article ❗ Un chois aléatoire d'un article sur Wikipedia totalement fait en Python par moi, et en français. 🔮 Grâce a une requète a w

MrGabin 4 Jul 18, 2021
Small Python script to parse endlessh's output and print some neat statistics

endlessh_parser endlessh_parser is a small Python script that parses endlessh's output and prints some neat statistics about it Usage Install all the

ManicRobot 1 Oct 18, 2021
A sys-botbase client for remote control automation of Nintendo Switch consoles. Based on SysBot.NET, written in python.

SysBot.py A sys-botbase client for remote control automation of Nintendo Switch consoles. Based on SysBot.NET, written in python. Setup: Download the

7 Dec 16, 2022
A dictionary that can be flattened and re-inflated

deflatable-dict A dictionary that can be flattened and re-inflated. Particularly useful if you're interacting with yaml, for example. Installation wit

Lucas Sargent 2 Oct 18, 2021
A random cats photos python module

A random cats photos python module

Fayas Noushad 6 Dec 01, 2021
.bvh to .mcfunction file converter.

bvh-to-mcf .bvh file to .mcfunction converter

Hanmin Kim 28 Nov 21, 2022
Python utilities for writing cross-version compatible libraries

Python utilities for writing cross-version compatible libraries

Tyler M. Kontra 85 Jun 29, 2022
A python package containing all the basic functions and classes for python. From simple addition to advanced file encryption.

A python package containing all the basic functions and classes for python. From simple addition to advanced file encryption.

PyBash 11 May 22, 2022
Go through a random file in your favourite open source projects!

Random Source Codes Never be bored again! Staring at your screen and just scrolling the great world wide web? Would you rather read through some code

Mridul Seth 1 Nov 03, 2022
This repository contains scripts that help you validate QR codes.

Validation tools This repository contains scripts that help you validate QR codes. It's hacky, and a warning for Apple Silicon users: the dependencies

Ryan Barrett 8 Mar 01, 2022