arcp is a Python library (current version 0.2.1) designed for creating and parsing arcp (Archive and Package) URIs. These URIs are used to identify or refer to hypermedia files bundled within an archive or application package, such as a ZIP file. The library focuses solely on URI generation and parsing and does not provide functionality for interacting with archive files (like `zipfile`) or making network requests (`urllib.request`). Its release cadence appears slow, with the last update to PyPI in February 2020.
pip install arcpVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create an arcp URI using `arcp.serialize()` and parse an existing arcp URI string into its components using `arcp.parse()`.
If you need to interact with archive contents, combine `arcp` with other Python libraries like `zipfile`, `tarfile`, or network libraries like `urllib.request` or `requests`.
Review the project's GitHub repository (stain/arcp-py) for any new activity before committing to long-term use in critical systems. Consider vendoring if stability is paramount.
The `arcp` library is for URI parsing and generation only. To read an archive, use appropriate Python modules like `zipfile` or `tarfile`. For example: `import zipfile; with zipfile.ZipFile('my_archive.zip', 'r') as zf: ...``arcp.parse()` is specifically designed for 'arcp' scheme URIs. Ensure the input string starts with 'arcp://' before parsing. For other URI schemes, use `urllib.parse`.
No dependency data recorded yet.