publishprs: Publish private pull requests in a public repo
Install:
pip install publishprs
Connect to the LaminDB instance to be used for assets management:
lamin connect account/instance
Export API tokens for GitHub's API:
export GITHUB_SOURCE_TOKEN=... # token with access to source repo, to process assets, needs to be a classic token
export GITHUB_TARGET_TOKEN=... # token with access to target repo, to assign original user identity, should be fine-grained and issued by the original user account
Publish a PR:
from publishprs import Publisher
publisher = Publisher(
source_repo="https://github.com/laminlabs/laminhub",
target_repo="https://github.com/laminlabs/laminhub-public",
)
url = publisher.publish(pull_id=3820)
print(f"Published to: {url}")
Metadata
Release files for publishprs 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| publishprs-1.0.0.tar.gz | 12.2 kB | Without provenance | Details for publishprs-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| publishprs-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for publishprs-1.0.0-py3-none-any.whl |
Total release size: 21.6 kB
Release files / publishprs-1.0.0.tar.gz
| Download URL | publishprs-1.0.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1391f6f2dbfa5920682053be040f2b765824fd828a6656b14249f733070f6c5b
|
|
BLAKE2b-256 checksum How to use checksums |
a5fc4112da4143fb905940cf940d8e10d99a81ff53f487a8488c702e15dde3f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / publishprs-1.0.0-py3-none-any.whl
| Download URL | publishprs-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
485020f8ffad837ba0d7cc5b793acfe988a7c37c1996b4b4b506dae490312f55
|
|
BLAKE2b-256 checksum How to use checksums |
4919df60bc99ef55ade1a7a8063df408049afb97623e8482fa00b01a719ab085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Security for publishprs 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.