A set of tools for building models at the TransLink Forecasting Team
Project description
TransLink's Python Tools
Python tools to read data, yaml configuration, logging, and much more.
Getting Started
To use the tools within this package, you must first install this package:
Method 1: precompiled wheel
Install with precompiled wheels from PyPI is the fastest way to get started:
pip install tlpytools --upgrade
Method 2: build from source
Build and install from source allow you to access the latest version or a specific version without any available precompiled wheels:
git clone https://github.com/TransLinkForecasting/tlpytools.git --depth=1
cd tlpytools
python -m pip install --upgrade build
python -m build
pip install dist/tlpytools-0.1.2-py3-none-any.whl --upgrade --force-reinstall
Method 3: editable install for development
If you are developing and testing tlpytools to work with downstream code, you may install the package as an editable install. This allows you to continuously make changes to the tlpytools
package in your local development folder, while integrating these changes in real time with your downstream code.
git clone https://github.com/TransLinkForecasting/tlpytools.git --depth=1
cd tlpytools
pip install -e ./
Note that after this installation, any code changes you make within the tlpytools
folder will take effect immeidately witin your development environment.
Usage
After installation, you can access the tlpytools
namespace within your data project and importing parts of the package in your python script:
from tlpytools.log import logger
from tlpytools.config import run_yaml
Build and Distribution Process
- Review
setup.cfg
andpyproject.toml
to ensure dependencies and versions are up to date. - Generate distribution archives
conda activate base
python -m pip install --upgrade build
python -m build
- Upload to PyPI
python -m pip install --upgrade twine
python -m twine upload dist/*
Review the newly upload package on https://test.pypi.org/project/tlpytools/
If you are having problem authenticating to PyPI, you should register on PyPI and create a new token. Set up the token in ~/.pypirc
by following package distribution guide
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
File details
Details for the file tlpytools-0.1.2.tar.gz
.
File metadata
- Download URL: tlpytools-0.1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af54859050704a38f65d1dbb77091f2ecb9024aca4441e1651189e19c6185065 |
|
MD5 | 95e72287599767bc52a910e32066b966 |
|
BLAKE2b-256 | 78892c6d98692325933735cd6fbb9199f999e8043980663c9937971bc497158e |
Provenance
File details
Details for the file tlpytools-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: tlpytools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23cc87feb15da37f7940e964b03351fcfa1504013912809d60e905e6096a9ef7 |
|
MD5 | 1052e457e9c0f4a179f422dbb47609dc |
|
BLAKE2b-256 | c915780a8e5126de1104780e07acd697242e8fafcf66429d8e39cb75ad9fe176 |