Skip to main content

CruxPy

The package contain classes helpful in dealing with Crux ports. At the moment the main usage is for creation of the ports collection website.

Classes

page

The class to prepare a website for a Crux ports repository.

The constructor takes 4 parameters:

  • the path to a directory with a collection (defaults to './')
  • name of the header file to use. (defaults to the 'header.html' from module 'files' folder) Header is content of the page over the table.
  • style name, where the style is the name of one the style from the 'files' folder of the module. (The default is 'original').
  • if the page should use git information to define the update date (default is true)

Methods

  • read_repo(): read ports information for the repo

  • generate_page(): creates HTML page

  • write(): saves the page to a file (default is 'index.html')

  • write_style(): saves css style file. It's going to be called 'style.css' and save to a given path (default is './')

  • content of a page 'header', which is a html code over the table containing port informations. By default it looks for a collection in current folder ., and html from the files/header.html file. It can also copy the style file from the project repo to the selected location. This method requires a style name as an argument, but save the css file into the current location by default.

port

The class to get information from a Crux port. The constructor requires the path to the port as the input. Additionally, boolean to control if git information should be use to populate update files is optional.

Methods:

  • last_update(): get git information about the latest update to the port
  • expose_pkgfile(): expose metadata from the Pkgfile

Examples

There a few examples of usages in the examples folder.

Development

It is fine to commit changes directly to the repo trunk branch. The python package changes will be only visible if the version is changed in the pyproject.toml configuration file.

Tests

Basic pytest are located in the tests folder

GitHub action

There are a few GitHub Action workflows.

  • commit: On every commit, GHA checks if there is a new version in pyproject.toml file. If there is one the new tag is created.
  • release: Every new tag triggers a release workflow, which generate a GitHub release
  • publish: The release workflow triggers another one which builds and publishes python package to the pypi

Metadata

Release files for cruxpy 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cruxpy 0.2.5
File Size Uploaded Provenance Actions
cruxpy-0.2.5.tar.gz 18.2 kB With provenance Details for cruxpy-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cruxpy 0.2.5
File Interpreter ABI Platform Actions
cruxpy-0.2.5-py3-none-any.whl Python 3 none any Details for cruxpy-0.2.5-py3-none-any.whl

Total release size: 36.9 kB

Release files / cruxpy-0.2.5.tar.gz

Download URL cruxpy-0.2.5.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2523ab1d98d0f9c13886b5ce680a99783d05beca1b7dd47edcbb0f47eaeef793
BLAKE2b-256 checksum
How to use checksums
015450e229da4d1cbf36ff324a561e60c61b48e64c8512223c9534deda514450
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / cruxpy-0.2.5-py3-none-any.whl

Download URL cruxpy-0.2.5-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6e1684f40b157885814a6f2b24af56f28ee04e5c43adf1e7fec3947688c0434
BLAKE2b-256 checksum
How to use checksums
6cc21b950a4a0bbeb460dd656a4923ed248bf2c5d1477755af6505b184d9e206
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for cruxpy 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cruxpy-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page