Just utilities made by Jim Vogel
Project description
Sparkles ✨
Just utilities made by Jim Vogel - commonly used Python functions to avoid rewriting.
Installation
pip install sparkles
Development
This project uses uv for dependency management.
# Install dependencies
uv sync --all-extras
# Run tests
uv run pytest -v
# Run linter
uv run ruff check sparkles/
# Format code
uv run ruff format sparkles/
CI/CD Setup
Setting up PyPI Publishing (One-time setup)
-
Create a PyPI API token:
- Go to https://pypi.org/manage/account/token/
- Create a new project-scoped token for "sparkles"
- Copy the token (starts with
pypi-)
-
Add token to GitHub Secrets:
- Go to your GitHub repository → Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
PYPI_API_TOKEN - Value: Paste your PyPI token
- Click "Add secret"
How to Release a New Version (Git-Ops Style)
Just push a tag with the bump type you want:
# For a patch release (0.2.0 → 0.2.1)
git tag release-patch
git push origin release-patch
# For a minor release (0.2.0 → 0.3.0)
git tag release-minor
git push origin release-minor
# For a major release (0.2.0 → 1.0.0)
git tag release-major
git push origin release-major
What happens automatically:
- GitHub Actions detects the
release-*tag - Bumps the version in code and commits it
- Creates a proper version tag (e.g.,
v0.2.1) - Builds the package
- Creates a GitHub Release with release notes
- Publishes to PyPI
That's it! No manual builds, version edits, or uploads needed.
Features
- Date/time utilities with timezone support
- Data parsing and transformation helpers
- Google Sheets integration
- MongoDB tools
- Slack notification helpers
- General Python utility functions
License
MIT
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparkles-0.2.1.tar.gz.
File metadata
- Download URL: sparkles-0.2.1.tar.gz
- Upload date:
- Size: 61.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649a0774eb06101f575394f35582828fcfa5ff770d2212765c1a6d72738f0468
|
|
| MD5 |
cc59e674776f75d62e37940d57a2a4c5
|
|
| BLAKE2b-256 |
d5d20d7a4b77961d4215609c37b70524b7565143241b32bb50840e6f4aa8513b
|
File details
Details for the file sparkles-0.2.1-py3-none-any.whl.
File metadata
- Download URL: sparkles-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
720053e524d040a21eab152fcc846630e0a0b7bde35ece16126655dcd7611ce0
|
|
| MD5 |
14a3d2b961c36e0653c9eec4f46b0feb
|
|
| BLAKE2b-256 |
744e52dd8bd9dbe1cae436fde576973eb6cea2c9f16bb9b66e5a6ef5f245e424
|