rpu
Random Python Utilities is a library that contains stuff that (I know I) and you probably are tired of adding to all of your projects. But with rpu you can just add it as a requirement and no more copy pasting! Main benefit of using rpu over copy pasting is that if there is a bug found with the code, instead of having to fix it in all of your projects it can just be fixed in the library and then its fixed for everyone.
Key Features
Grammar
- Plural
- possessive
Iterables
- chunk
- get
async
- run_in_exectuor
CLI
- command infrustructure
Installation
★ Python 3.8+ is required
Installing from pip
pip install -U rpu
Installing from source
py -m pip install -U git+https://github.com/cibere/rpu # requires git to be installed
Getting Help
- The discord server is always a good place to start.
- Through Github Discussions Before creating a post, consider reading The discussion guidelines
Documentation Versions
There are currently two versions of the documentation being hosted.
Stable is the version that is on PYPI, while latest is the alpha/beta version on github
Examples
This library's github repository has a wide collection of examples. I try to have an example for basically everything inside the library. The examples can be found here
CLI Commands
- help: shows this menu
- version: gives you the version of rpu your using
- docs: opens rpus docs
- system-info: gives you system info
To run a command, simply run py -m rpu <command name>
Update Log
0.0.2 (so far)
Breaking Changes
name
,description
, andbrief
inConsoleClient
are not optional. Ifname
is not given, it will be the functions name. Ifdescription
is not given, it will be the commands docstring.- all async stuff have been moved under the
rpu.async_
folder
Additions
Bug Fixes
- Fixed bug where default help cmd in cli would not show description if brief was an empty string
- Fixed bug where pylance would yell at you when chunking
- fixed bug with
get
erroring when you try to use what it finds
0.0.1
Breaking Changes
None
Additions
rpu.grammar
rpu.async_
rpu.iterables
- docs
rpu.cli
- CLI commands
Bug Fixes
None
Sub-modules
rpu.async_
-
Async specific utils And async versions
rpu.cli
rpu.consts
rpu.grammar
rpu.iterables