A python utility library is written by huykingsofm
Reason this release was yanked:
We provide a homepage url incorrectly ^^
Project description
hks_lib
This is huykingsofm's python library, including:
logger
: A module is used to print notifications to console screen or write logs to file. It is special because you can disable the print/write statement by modifying few parameters without having to delete or comment them.cipher
: A very simple crypto module bases on cryptography. It is easier to use than original one.done
: A module defines a class (Done
) for returning complexity values easier.http
: A module is used to read and generate raw http packets.
How to build
We are assuming that your code is running on the Python 3.7.1. If you meet any problems, even if with other versions, let create an issue to notify our. We will solve them as quick as possible.
Create Virtual Enviroment (optional but IMPORTANT)
If you had your own virtual enviroment, you can ignore this step.
You should create a virtual enviroment to avoid conflicting with other applications on your machine when installing our module. The virtual enviroment should be installed with Python 3.7.1 (you can use other Python versions but we can't ensure that unexpected errors will not appear suddenly).
I highly recommend you to use Anaconda because its utilities. The command of creating virtual enviroment in Anaconda is:
$ conda create -n your_venv_name python=3.7.1
$ conda activate your_venv_name
(your_venv_name) $ _
Or use Python venv
:
$ python -m venv path/to/your/venv
$ path/to/your/venv/Scripts/activate.bat
(your_venv_name) $ _
Method 1: Install the most stable version
(your_venv_name) $ pip install hks_pylib
Method 2: Install the newest version
(your_venv_name) $ pip install -r requirements.txt
(your_venv_name) $ pip install -e .
How to use
Just use import
statement and enjoy it. We will write documentations and tutorials as soon as possible so that you can understand our library easier.
from hks_pylib.done import Done # A Done object can be used to substitute complexity return value
from hks_pylib.logger import StandardLogger # A class is used to print/write logs console/file
from hks_pylib.logger import StandardLoggerGenerator # A class is used to generate StandardLogger objects. You should use this class instead of using StandardLogger directly
from hks_pylib.cipher import NoCipher, AES_CBC, SimpleSSL # Some common ciphers
from hks_pylib.http import HTTPReader, HTTPWriter # You can create or read raw http packets with these class
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 hks_pylib-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a211b48e704f2ddd2d5f9b37e5598f61149859900de79690d00c5b55af445b0 |
|
MD5 | eaca013502319e429838adf091f922d3 |
|
BLAKE2b-256 | b9fc91bfcaf1b554ebe8b7c96a1d4f37db11e8ce0b4b6550ad56ce5c25f07af3 |