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
- First you must navigate to the folder containing these files
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
Release history Release notifications | RSS feed
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
Close
Hashes for SandsPythonFunctions-0.0.1a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ea0c2c00c764d672fff6fd7a491cf68007901ef12f04d3e3553f19d2c6896fb |
|
MD5 | 6a35301f1824e25411205c5df360c45e |
|
BLAKE2b-256 | 261d25bfeaf01baa03e9806c9d68d0c5cc4fe4b70ae671613bc245ae164fac8b |
Close
Hashes for SandsPythonFunctions-0.0.1a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0ba066d6b1a75152dbffa55925fa464753a3abc502e4d42d8a99e8bb498662 |
|
MD5 | a79e166fbe44cb12f83cdf1b6f0dcb12 |
|
BLAKE2b-256 | 1ce280c453685694ede33e6375effc0fb21206e17e058800d62f783370ce8939 |