Skip to main content

Python utility library

Project description

🧩Run tests

myKit

Python utility toolkit.

The aim of this project is to understand how things work by building them from the ground up, while also providing a lightweight version of something that already exists out there.

mykit's banner

pypi version MIT License

Installation

pip install mykit

Usage

from mykit.kit.text import byteFmt
from mykit.app.arrow import Arrow
from mykit.app.slider import Slider


x = byteFmt(3141592653589793)
print(x)  # 2.79 PiB

FAQ

Changelog

  • 4.1.0 (June 21, 2023):
    • NEW: in /kit/utils.py: slowprint and print_screen
  • 4.0.0 (June 18, 2023):
    • Breaking changes:
      • LIB_DIR_PTH in mykit replaced by DIST_DIR_PTH
      • Changed /app/ mechanism:
        • removed /app/_runtime.py
    • .app.App.listen: Added aliases for event listener types
    • New: /app/architecture
  • 3.0.0 (June 17, 2023):
    • Breaking changes:
      • Changed title arg to name in .app.App
      • Now /kit/keycrate must be a .txt file, and the file must exist
      • Added export method to .kit.keycrate.KeyCrate
    • Added test suite for .kit.keycrate.KeyCrate
  • 2.0.4 (June 16, 2023):
    • Now move method of Button, Label, and _Slider will return self
  • 2.0.3 (June 16, 2023):
    • Now .app.complex.plot.Plot and .app.complex.plot.Biplot can be used even if no points is specified
    • Added add_background_processes to .app.App
  • 2.0.2 (June 14, 2023):
    • finished updating all type hints
    • Added visibility functionality to /app/complex/plot.py
  • 2.0.1 (June 14, 2023):
    • Updated all type hints to make them work on Python 3.8 and 3.9
    • Added visibility functionality to /app/complex/biplot.py
  • 2.0.0 (June 13, 2023):
    • Breaking changes:
      • New mechanism for app: /app/__init__.py
      • Moved: /kit/graph/graph2d.py -> /app/complex/plot.py
      • transform: /kit/quick_visual/plot2d.py -> /kit/fast_visualizations/static/plot.py
    • Bugfixed:
      • folder mykit/tests/ should also be excluded during build (rc version)
    • New: /app/complex/biplot.py
  • 1.0.0 (June 12, 2023):
    • changed arg name: /kit/quick_visual/plot2d.py: graph2d_cfg -> cfg
  • 0.1.3 (June 12, 2023):
    • removed get_gray from /kit/color.py
    • transform /kit/gui/button/ -> /app/button.py
    • transform /kit/gui/label/ -> /app/label.py
    • transform /kit/gui/slider/ -> /app/slider.py
    • transform /kit/gui/shape/ -> /app/arrow.py
    • transform /kit/neuralnet/dense/ -> /kit/neuralnet/dense.py
    • transform /kit/neuralnet/genetic/ -> /kit/neuralnet/genetic.py
  • 0.1.0 (June 12, 2023):
    • migrated all modules from carbon into /kit/
    • deleted /kit/math/
    • added /rec/ and /app/
    • transform /kit/color/ -> /kit/color.py
    • moved /kit/color/test_color.py to mykit/tests/test_kit/test_color.py
    • transform /kit/ffmpeg/ -> /kit/ffmpeg.py
    • deleted /kit/graph/graph2d/
    • transform /kit/graph/graph2d/v2.py -> /kit/graph/graph2d.py
    • transform /kit/maths/ -> /kit/math.py
    • moved /kit/maths/test_maths.py -> mykit/tests/test_math.py
    • transform /kit/noise/ -> /kit/noise.py
    • transform /kit/path/ -> /kit/path.py
    • transform /kit/text/ -> /kit/text.py
    • transform /kit/time/ -> /kit/time.py
    • transform /kit/utils/ -> /kit/utils.py

Troubleshoot

  • If you find any bugs, feel free to contribute by opening an issue or pull request. Thanks!

License

This project is licensed under the MIT license.

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

mykit-4.1.0.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

mykit-4.1.0-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file mykit-4.1.0.tar.gz.

File metadata

  • Download URL: mykit-4.1.0.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for mykit-4.1.0.tar.gz
Algorithm Hash digest
SHA256 b1aca957d55b019d451567c56c249468a0984b87294d89578a3ff6d492f2419c
MD5 508c2d805d6e741f18d128dc9e542a2b
BLAKE2b-256 3237de47128ce3302fb044191fe86fdae4587fc261c82ff66e1016cc860d6a01

See more details on using hashes here.

File details

Details for the file mykit-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: mykit-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for mykit-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30976b7c5a3443587f9bc9081025db7e78b234414f2df938e8fe3f1ca2c02040
MD5 b9964ca245519624f469f1b2d4a8613e
BLAKE2b-256 4cbe7f921e1f4835330aa42cb9dd50a02d6501a8fcff4f8cc2194ac62fd0a6a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page