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
# installation on linux
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
# check version
poetry --version
# update poetry
poetry self update
# set up virtual environment using pyenv
python -m venv venv
# activate the virtual environment
source ./venv/bin/activate
# upgrade pip
python -m pip install --upgrade pip
# Initialising a pre-existing project (not already managed by poetry)
cd pre-existing-project
poetry init
# poetry add (or remove) PackageName
poetry add PackageName
poetry remove PackageName
# update the poetry.lock file
poetry update
# The build command builds the source and wheels archives
poetry build
# The install command reads the pyproject.toml file from the current project, resolves the dependencies, and installs them.
poetry install
# this will publish the package
poetry publish
Basic Usage Example
TODO:
Included Packages
Functions from EmailFunctions
Functions from MultiprocessingFunctions
Functions from ParquetFunctions
Functions from PrintFunctions
Functions from TimerFunctions
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.
Other Notes About This Code
I use "TESTCODE:" to designate code used in testing functions and scripts. I try to make sure to comment or delete those lines in the release versions of the package
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.1a22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39ddff2c7dd033ffc3f3f620373b9e1b9477f19aada80871c5266cf6492a6a89 |
|
MD5 | 39cb6999d62d92f82f91dfedfc84ec68 |
|
BLAKE2b-256 | 0e048b962c1414a5d4219a1088fe37e1f05c2ebf04398d18ebc4c2e3e79eb636 |
Close
Hashes for SandsPythonFunctions-0.0.1a22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21ec554bda427242d4fe2f943044cf9d33cbbd8e6ed3885e39cddef4ee16b5b |
|
MD5 | 918582149a79ca86edf968d8df323088 |
|
BLAKE2b-256 | cfa6ff91204e7a9f258e87954239090a32311c78d4b3910e6463f40bc1209c7b |