Publish private PRs.
Project description
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
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}")
Note that downloading assets from GitHub URLs of the form https://github.com/user-attachments/assets/47729149-22a5-481b-beb4-69bb609ae054 neither works with the auto-generated GITHUB_TOKEN within GitHub Actions nor the fine-grained modern access tokens. A classic token is needed.
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 publishprs-0.3.0.tar.gz.
File metadata
- Download URL: publishprs-0.3.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9182a1ed1fc91829bb229395b4aeb865692a4379660bc104b4f9929ae4316b5
|
|
| MD5 |
919c232cd58288d9603872fe9bf9c4cc
|
|
| BLAKE2b-256 |
afc4e15358f238f2b2c9c6ffa38fb82df486150652b2d7b26c1882bf38c47026
|
File details
Details for the file publishprs-0.3.0-py3-none-any.whl.
File metadata
- Download URL: publishprs-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28aff3af858de34867406e4a3ae09184b7ec9cb2fc8f40b937484a16b51381de
|
|
| MD5 |
1468e38afa4c9cf824b4426de612240b
|
|
| BLAKE2b-256 |
3f8eb39b870e0adac86366c76a58dc05559ec7707a1bcedf259946bacf0b2bd3
|