Skip to main content

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)

  1. Create a PyPI API token:

  2. 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:

  1. GitHub Actions detects the release-* tag
  2. Bumps the version in code and commits it
  3. Creates a proper version tag (e.g., v0.2.1)
  4. Builds the package
  5. Creates a GitHub Release with release notes
  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparkles-0.2.2.tar.gz (61.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparkles-0.2.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file sparkles-0.2.2.tar.gz.

File metadata

  • Download URL: sparkles-0.2.2.tar.gz
  • Upload date:
  • Size: 61.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sparkles-0.2.2.tar.gz
Algorithm Hash digest
SHA256 da3d79dedf72c76ff85def720b62333ada335eba9cdd01dedeb8f5ff7c4136e3
MD5 54da36d488bfdcf8fde6d40326642fac
BLAKE2b-256 da7fb6562b36cf5a5900ac53c0fb925df5ea999b957aa42c13261ea5775dd248

See more details on using hashes here.

File details

Details for the file sparkles-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: sparkles-0.2.2-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

Hashes for sparkles-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd27d4230fe2eb442ff5ac8a77a548f6bd1b88262e476050d5ad7f53f989b984
MD5 032325ffb673b59f147665fbfdb05b84
BLAKE2b-256 f9d437a459fc5a6c966024e00e4e23d36dd8adc2b0222dc2fa0a838a89703bbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page