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.2.tar.gz (4.8 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cscs_tools-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 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.2.tar.gz
Algorithm Hash digest
SHA256 47953ec673237ca2358c89e2c4e0017474610850833d1dfb9469284afedcd2de
MD5 a0aa04fbf3475a4908c55f13c01f775f
BLAKE2b-256 4beeec81b9f3ff100aeb6c7843838be190069006b6f770c9daa5d652fdc3bf85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cscs_tools-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4fc5786a22172027f8a3dd0cb7c0d157a55562bb8ad74566601dca707c80dff5
MD5 1446ed75267b7641e3dfe3bf91445648
BLAKE2b-256 52bbef870673f071d3278e901470a1c616937a63214cd609316ccb42340390f9

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