A set of useful Python functions
Project description
The Snek Scripts
Introduction
The Snek Scripts is a collection of Python functions all designed for the sole purpose of usefullness.
Libraries
The Snek Scripts contain 5 libraries at the moment, fracarith, encoder, strlist, cryptography, and misc.
fracarith
The fracarith module is a module designed for exact fraction arithmetic. It has a fraction class, with gcd()
and lcm()
functions to help it function.
encoder
The encoder module only has two functions, stoi()
and itos()
. stoi()
encodes strings into integers and itos()
does the reverse.
strlist
The strlist module serves as something of an extension of the encoder module. Its functions, encode()
and decode()
, can compress a list of strings into a single string and turn a single string into a list of strings, respectively.
cryptography
The cryptography module is a module with tools for cryptography, such as ciphers and frequncy analysis.
Notes
- The strlist module may be soon merged with the encoder module.
- While the original fracarith, encoder, and strlist libraries were created by me, The Snek Scripts' aim is to be a community project. The contributions of others will be listed in the Contributions section.
Contributions
AoPS:
- @RWhite: Suggestion to change
stringtoint()
tostoi()
andinttostring()
toitos()
, suggestion to change encoder and strlist to compress their functions. - @sealsrock: Suggestion to change importing each method to importing
*
in__init__.py
- @Yelly314: Suggestion to create a fraction class in fracarith
- @player01: Suggestion to make
alphabet
variable global in cryptography module
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snek_scripts-0.1.3rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d80392968a1b7f142cf227c5e47233a2111fc2080c2c132a8078307baa4625b |
|
MD5 | b79f75b4288d3ca90e0393bcb03154f3 |
|
BLAKE2b-256 | 4fa45cc91f55d961a743560d593ff30d9735171394e9e526b81eb2bb1bbca748 |