Skip to main content

A collection of common resources and utilities to supercharge Python development.

Project description

Common Kit

A collection of common utilities for use in Python projects.

  • Config: A wrapper for convenient, object-oriented use of configuration files.
  • Context Managers: A collection of managers that are especially useful for command line scripting, testing, and deployment activities.
  • CSV: Work with CSV files in an object-oriented manner.
  • Database: A database wrapper with convenient methods using natural language.
  • Dispatcher: Implements a simple signal-receiver pattern in object-oriented code.
  • Files: Various utilities for working with files.
  • Lists: Some simple functions for working with lists.
  • Logging: A helper for making Python logging easier to use.
  • Math: Some help. With math.
  • Platform: A light-weight detection tool for discovery information about the current operating system.
  • Pluggable: Implements a simple plugin pattern.
  • Shell: Various classes and utilities for creating and interacting with the command line, including command execution, consistent exit codes, colorized feedback, input prompts, and tables.
  • Strings: Various utilities for working with strings.
  • Types: Run-time data type detection and casting.
  • Utils: A collection of functions implementing common and some not-so-common operations in Python.
  • Watchers: A library for setting up a response to changes in files or directories.

Full documentation is available at: https://develmaycare.com/docs/

Install

To install without database support: pip install commonkit

To install all dependencies, use: pip install commonkit[all]

Note: All dependencies includes SQLAlchemy but not specific database drivers below.

Database Support

For database support: pip install commonkit[database] (supports SQLite by default)

Or for specific database engines:

  • MS SQL: pip install commonkit[mssql]
  • Oracle: pip install commonkit[oracle]
  • Postgres: pip install commonkit[pgsql]

Tablib is required for database export features: pip install tablib

Files and Strings

Files and strings make optional use of BeautifulSoup, Jinja2, Pygments, and unidecode:

pip install beautifulsoup4; # for strip_html_tags()
pip install jinja2; # for parse_jinja_string() and parse_jinja_template() and config when parsing files as templates
pip install pygments; # for highlight_code()
pip install unidecode; # for replace_non_ascii() and slug()

Or use pip install commonkit[strings] to install all of these dependencies.

Shell

Full shell support requires colorama and tabulate:

pip install colorama; for shell.feedback
pip install tabulate; for shell.tables

Or use pip install commonkit[shell].

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

python-commonkit-1.8.1.tar.gz (64.0 kB view details)

Uploaded Source

Built Distribution

python_commonkit-1.8.1-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

Details for the file python-commonkit-1.8.1.tar.gz.

File metadata

  • Download URL: python-commonkit-1.8.1.tar.gz
  • Upload date:
  • Size: 64.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for python-commonkit-1.8.1.tar.gz
Algorithm Hash digest
SHA256 70814a89d45a9174912a9dc28f383f4bffd67502890200b49bedeb5fac70a9f2
MD5 27981d8060ea099101d3199e4dd35073
BLAKE2b-256 f3b2238555fa1a53433a2f66a7e2f541e68e49820ab5dbf3dbb750fd49602ac4

See more details on using hashes here.

File details

Details for the file python_commonkit-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: python_commonkit-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 83.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for python_commonkit-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eea9b4a925ef177df5aa137e4142f710b85021a95c3b45f9324703eac61b847b
MD5 6b963ac9cfcb23062bf5ca4afb2f6755
BLAKE2b-256 b2c1b181a5d071a9a1015da9e4c0d7e38f17ce39bf776f298cfca0a67e7ab8c4

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