Access ar archive files (.a)!
Project description
ar
Python package for parsing ar archive file.
Installation
pip install ar
Usage
List files inside file.a
from ar import Archive
with open('file.a', 'rb') as f:
archive = Archive(f)
for entry in archive:
print(entry.name)
Read content of file.txt contained within file.a.
from ar import Archive
with open('file.a', 'rb') as f:
archive = Archive(f)
print(archive.open('file.txt').read())
Extract all files:
from ar import Archive
with open('file.a', 'rb') as f:
archive = Archive(f)
for entry in archive:
with open(entry.name, 'wb') as output:
content = archive.open(entry, 'rb').read()
output.write(content)
Developing
Create a virtual environment using python version of liking
python3.10 -m venv venv
Activate it
source venv/bin/activate
Install package editable together with relevant optional dependencies
pip install -e '.[test,dev]'
License
Licensed under the Apache License, Version 2.0.
Author
Samuel Carlsson
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ar-1.0.1.tar.gz.
File metadata
- Download URL: ar-1.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc8e64ac2fd157b9f285b1c981083f2e906258322ff5e4413c0096f67fc2003
|
|
| MD5 |
9ce270de1dfb59a47b5ba762a18d770e
|
|
| BLAKE2b-256 |
2b0f13f26fda15101f3415fab75456f5abc967a8c848287cf0b3dabc4b64d65a
|
Provenance
The following attestation bundles were made for ar-1.0.1.tar.gz:
Publisher:
python-package.yml on vidstige/ar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ar-1.0.1.tar.gz -
Subject digest:
8fc8e64ac2fd157b9f285b1c981083f2e906258322ff5e4413c0096f67fc2003 - Sigstore transparency entry: 592065814
- Sigstore integration time:
-
Permalink:
vidstige/ar@67c62dd54e1306cd2a619dd4ad175238d2881db9 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/vidstige
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@67c62dd54e1306cd2a619dd4ad175238d2881db9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ar-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ar-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6b676acbe1c31b28e108361f23e44432324dafc87a782e9286896bf77dec8e
|
|
| MD5 |
53198235f97241e965d42b50ef3144eb
|
|
| BLAKE2b-256 |
deb9919ec85022e3b4c7b8bdf7729720666fe4d5eaff016a85b301bf0ce67798
|
Provenance
The following attestation bundles were made for ar-1.0.1-py3-none-any.whl:
Publisher:
python-package.yml on vidstige/ar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ar-1.0.1-py3-none-any.whl -
Subject digest:
ee6b676acbe1c31b28e108361f23e44432324dafc87a782e9286896bf77dec8e - Sigstore transparency entry: 592065829
- Sigstore integration time:
-
Permalink:
vidstige/ar@67c62dd54e1306cd2a619dd4ad175238d2881db9 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/vidstige
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@67c62dd54e1306cd2a619dd4ad175238d2881db9 -
Trigger Event:
push
-
Statement type: