This package includes some, for me, helpful small things.
Project description
Hi! This package can be used to shorten some commands from tkinter and colorama. As so,
import basepackage.module
Use: -basepackage.module.pa(arg1: f for fore, b for back, s for style, colors first characters each, but k for black and l for blue. d for dim, h for bright and n for normal, c or r or clear or reset to reset all style after printing the word. The word in arg2 will be printed) -basepackage.module.p(arg1: --- to reset style and to mark text behind, without --- only print text and do not reset.)
Use: -basepackage.module.geninf(): to get sys, node, release, version, machine, processor -basepackage.module.bt(): to get bt.year, bt.month, bt.day, bt.hour, bt.minute, bt.second -basepackage.module.cpucores(): to get pcores and lcores -basepackage.module.cpufreq(): to get maxfreq, minfreq, curfreq -basepackage.module.cpuusage(): to get cpuusge -basepackage.module.memory(): to get totmem,avamem,usdmem -basepackage.module.swap(): to get totswap, avaswap, usdswap
Use: basepackage.module.error/help/info/askokcancel/askyesno/askyesnocancel/askretrycancel/askquestion(name, text) to get answer [short for tkinter messagebox]
Use: basepackage.module.ptest(number to test if primenumber or not) to get n for not a primenumber and p for primenumber
Use: basepackage.module.rstrng(lenght) to get random string with digits, special characters and letters
This package was written on Linux Debian 10.2 with use of the GNOME Terminal, python 3.7.4 64-bit, base anaconda, and Visual Studio Code.
Project details
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
File details
Details for the file basepackage-0.1.1.tar.gz
.
File metadata
- Download URL: basepackage-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5806ddf323c8ab0769183145c31bf783117385c570552c9790348cad2bac7d |
|
MD5 | 4659f49e775be242537b0acc8a3f55c8 |
|
BLAKE2b-256 | 171450a370d3ba6d867ff5850378552c8cbb3a184a2a6637c803f105085200f6 |
File details
Details for the file basepackage-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: basepackage-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f300d6217a49570126cb74192028df77705cc1c45c777bacd05ae5279591762 |
|
MD5 | 932eb053ea78ff263f21b8dde6c6a5f8 |
|
BLAKE2b-256 | 2c376fe256d19cc5bb3ebaa39543411a5cd3eef6f0df5ad3390c7a967504ae39 |