repository attribute on the Alphacast client.
For the conceptual overview of what a repository is and how permissions work, see Repositories in the Documentation tab.
List your repositories
read_all() returns every repository where you have at least read permission, including public repositories you have explicitly subscribed to.
id, name, description, privacy, slug, and permission.
Look up a repository by ID
create() call or from the URL https://www.alphacast.io/repositories/{id} in the Alphacast UI.
Look up a repository by name
read_by_name scans the list returned by read_all() and returns the first repository whose name matches exactly. If no repository matches, it returns False.
Name lookup is case-sensitive and matches the exact string. If you have repositories with similar names, prefer looking them up by ID.
Create a repository
Parameters
Display name for the repository. Must be unique within your account.
Long-form description shown on the repository page. Defaults to
repo_name if omitted."Private" or "Public". Public repositories are discoverable by all Alphacast users.URL-safe identifier used in the repository’s web URL. Defaults to a slugified version of
repo_name if omitted.Controls behavior when a repository with the same
repo_name already exists. When True, the existing repository is returned. When False, a ValueError is raised.Idempotent create
PassreturnIdIfExists=True to make repository creation safe to re-run — for example in a script that bootstraps an environment:
Delete a repository
Common patterns
Find or create
When you want a single canonical repository for a workflow:returnIdIfExists:
List only repositories you can write to
read_all() returns repositories where you have any permission. Filter on the permission field to keep only writeable ones:
Next steps
- Add datasets to a repository — see Datasets.
- Push data into a dataset — see Uploading data.