Giter VIP home page Giter VIP logo

cool-utils's Introduction

Cool Utils

Documentation

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:

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

  1. BenitzCoding
  2. JDJG Inc. Official
  3. P3ter
  4. Proguy

cool-utils's People

Contributors

benitzcoding avatar jdjginc avatar proguy914629bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

openrobot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.