Skip to main content

Python Library for common code used across my packages.

Project description

https://travis-ci.org/kenlowrie/pylib.svg?branch=add%2Fdocs_and_unittests

PyLib is a library of useful (to me) functions and classes for building applications and packages written in Python. It supports both the 2.x and 3.x versions of Python.

Installing

$ pip install kenl380.pylib

Documentation

Read the documentation for PyLib. It is hosted online at kenl380pylib.readthedocs.io

Credits

PyLib was written and is maintained by Ken Lowrie

License

PyLib is released under the Apache 2.0 license

Developing

Start by setting up your environment using pipenv. Switch to the local copy of your repository and:

$ pipenv install

The pipenv install step is only required once to setup the virtual environment. After that, you can type pipenv shell to spawn a shell that’s setup for working on pylib.

pylib is installed in edit mode after running the pipenv install, so you can make changes directly to the code and test them interactively when working inside the pipenv shell prompt.

If you’re building an application, you can:

import kenl380.pylib as pylib

to load the methods and classes from pylib into your applications’ namespace.

Update the Docs!

Sphinx is used to create the documentation for pylib. Be sure to add or update the docs for any changes you make. This is required if you plan on submitting a pull request.

Testing

Make sure that you write unittests for any new methods or classes that you add. You can test them using tox.

For example, to run unit tests, issue this command from your pipenv shell:

$ pipenv shell
$ tox

PyLib’s tox.ini is configured to run all of the unittests on both Python 2.7 and 3.6, so you need to have both installed locally in order to run the tests. You can use Homebrew or Pyenv to get multiple versions installed on your local system.

Conclusion

If you have questions or comments, feel free to contact me via email. If you find an issue, please add it to GitHub.

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

kenl380.pylib-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kenl380.pylib-1.0.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kenl380.pylib-1.0.0.tar.gz.

File metadata

  • Download URL: kenl380.pylib-1.0.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kenl380.pylib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 375aaf46093bfec068069ce0d249c733394811b0bf3a87ca5bda071f697aa8fb
MD5 85f1cbdd0ffe32245008a418348e45de
BLAKE2b-256 30b357c421c53bac081b5d760ffaa1c38304b00a41fefa2ccdc33873e9113733

See more details on using hashes here.

File details

Details for the file kenl380.pylib-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kenl380.pylib-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38489959ae064ac738cfdc85ee36ff02c0c8c85301d6de95780a569d1196e6f8
MD5 ef66555c5ea6f309ec0dd8f178186afc
BLAKE2b-256 f627a0faafd6ade56cf57aa7683d31d9b3b1f4c06397831cfeea331df072af9f

See more details on using hashes here.

Supported by

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