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
EVE-NG tools, A Utility to make operations with EVE-NG more friendly.

EVE-NG tools, A Utility to make operations with EVE-NG more friendly. Also it support different snapshot operations with same style as Libvirt/KVM

Bassem Aly 8 Jan 5, 2023
This utility synchronises spelling dictionaries from various tools with each other.

This utility synchronises spelling dictionaries from various tools with each other. This way the words that have been trained on MS Office are also correctly checked in vim or Firefox. And vice versa of course.

Patrice Neff 2 Feb 11, 2022
A utility that makes it easy to work with Python projects containing lots of packages, of which you only want to develop some.

Mixed development source packages on top of stable constraints using pip mxdev [mɪks dɛv] is a utility that makes it easy to work with Python projects

BlueDynamics Alliance 6 Jun 8, 2022
This utility lets you draw using your laptop's touchpad on Linux.

FingerPaint This utility lets you draw using your laptop's touchpad on Linux. Pressing any key or clicking the touchpad will finish the drawing

Wazzaps 95 Dec 17, 2022
Multipurpose Growtopia Server tools, can be used for newbie to learn things.

Information Multipurpose Growtopia Server tools, can be used for newbie to learn things. Requirements - Python 3.x - Operating System (Recommended : W

Morphias 2 Oct 29, 2021
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type.

isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections and by type. It provides a command line utility, Python library and plugins for various editors to quickly sort all your imports.

Python Code Quality Authority 5.5k Jan 8, 2023
Python utility for discovering interesting CFPreferences values on iDevices

Description Simple utility to search for interesting preferences in iDevices. Installation python3 -m pip install -U --user cfprefsmon Example In this

null 12 Aug 19, 2022
Yet another retry utility in Python

Yet another retry utility in Python, avereno being the Malagasy word for retry.

Haute École d'Informatique de Madagascar 4 Nov 2, 2021
The git for the Python Story Utility Package library.

SUP The git for the Python Story Utility Package library. Installation: Install SUP by simply running pip install psup in your terminal. Check out our

Enoki 6 Nov 27, 2022
A collection of utility functions to prototype geometry processing research in python

gpytoolbox This repo is a work in progress and contains general utility functions I have needed to code while trying to work on geometry process resea

Silvia Sellán 73 Jan 6, 2023