Skip to main content

Functions I use regularly with my python projects

Project description

Sands Python Functions

Some functions I find useful regularly and I put them all into one package for easy access

I created this using Poetry.

Instructions

  • To build this you must first install poetry see instructions here
  • However to make it easy to access this is all of the code you'll need on linux to make this run (note that I use zsh not bash for my shell)
    • First you must navigate to the folder containing these files CHANGELOG.md LICENSE 'README reference.md' README.md dist poetry.lock pyproject.toml src
    • You then to make sure that you have the python environment that you want activated
    • You can then enter the code below
poetry build
poetry install

Basic Usage Example

TODO:

Included Packages

Functions from EmailFunctions

Functions from MultiprocessingFunctions

Functions from ParquetFunctions

Functions from PrintFunctions

Functions from TimerFunctions

Testing

Pytest runs in whatever directory you're located in at the time you run pytest so if you're not in the directory of the test scripts pytest will not see the files it needs to and will then fail.

Follow the code below to test the functions

cd src/tests
pytest /src/tests/EmailFunctions_test.py
pytest /src/tests/MultiprocessingFunctions_test.py
pytest /src/tests/ParquetFunctions_test.py

CI/CD

See this repo for an example of someone using poetry with they're python project to upload to PyPI on push to master.

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

SandsPythonFunctions-0.0.1a12.tar.gz (37.2 kB view hashes)

Uploaded Source

Built Distribution

SandsPythonFunctions-0.0.1a12-py3-none-any.whl (38.1 kB view hashes)

Uploaded Python 3

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