Skip to main content

Utilities library

Project description

cscs

Utility library for managing and retrieving version information from a version.json file.

📦 Installation

Install from PyPI:

pip install cscs

🚀 Usage

Place a version.json in your project root:

{
  "major": 0,
  "minor": 2,
  "patch": 1,
  "inherit": true
}

Then use it like this:

from cscs.version.services.version_service import VersionService

service = VersionService()  # Automatically finds version.json upwards
version = service.get_version()
print(version.str_repr())

Or specify the file path manually:

service = VersionService(file="path/to/my_ver.custom")

🧱 JSON Structure

The required structure of the version.json file is:

{
  "major": 0,
  "minor": 2,
  "patch": 1,
  "inherit": true
}

📝 License

MIT © Csaba Cselko

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

cscs_tools-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

cscs_tools-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file cscs_tools-0.0.1.tar.gz.

File metadata

  • Download URL: cscs_tools-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cscs_tools-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9acc7e643acf23dbfe27691a5c50f022010db0649d3a86d21cb8a8f3a5f91849
MD5 d191984339a77e0081d7532b645f483c
BLAKE2b-256 faee75fb4c9562f2aa4fd3b564d6bf34c94f40c10f424d9eeb9829c3f363a2b9

See more details on using hashes here.

File details

Details for the file cscs_tools-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cscs_tools-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cscs_tools-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a9fe84a801caac94425bcc61862867ece014c802444ff84cf409fc1839f9289
MD5 641450c7708c3e410dcf8d583723d150
BLAKE2b-256 4db5b0eeb2809d2ef5df17be9f3167b3227945ace12af217605cbf4cd715d1a2

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