Skip to main content

cdstarcat

Build Status PyPI

Manage objects in a CDSTAR instance using a local catalog.

Install

Running

pip install cdstarcat

will install the cdstarcat package as well as a commandline interface cdstarcat.

For developing cdstarcat, clone the repository clld/cdstarcat and run

cd cdstarcat
pip install -r requirements.txt

CLI

Run

cdstarcat --help

to get a list of available subcommands, and

cdstarcat help SUBCOMMAND

to get usage information for a particular subcommand.

cdstarcat API

Typically, cdstarcat will be used programmatically, to implement recurring media file maintenance tasks within projects - such as uploading media files for a new submission to Dictionaria.

In the simplest case this could look as follows:

import os
from cdstarcat import Catalog

def upload(directory):
    with Catalog(
        os.environ['CDSTAR_CATALOG'],
        cdstar_url=os.environ['CDSTAR_URL'],
        cdstar_user=os.environ['CDSTAR_USER'],
        cdstar_pwd=os.environ['CDSTAR_PWD']
    ) as cat:
        md = {
            'collection': 'PROJECT NAME',
            'path': '%s' % directory,
        }
        for fname, created, obj in cat.create(directory, md):
            print('{0} -> {1}'.format(fname, obj.id))

Metadata

Release files for cdstarcat 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdstarcat 1.6.0
File Size Uploaded Provenance Actions
cdstarcat-1.6.0.tar.gz 18.1 kB Without provenance Details for cdstarcat-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdstarcat 1.6.0
File Interpreter ABI Platform Actions
cdstarcat-1.6.0-py3-none-any.whl Python 3 none any Details for cdstarcat-1.6.0-py3-none-any.whl

Total release size: 35.9 kB

Release files / cdstarcat-1.6.0.tar.gz

Download URL cdstarcat-1.6.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7cdf4d8018aac31707917e795ebcae478cb482d855dd5c773bc38238ae0972ae
BLAKE2b-256 checksum
How to use checksums
558415309a456d7326a5fa01319863b604ad6de78af6b525ec1745c4f1cbca3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / cdstarcat-1.6.0-py3-none-any.whl

Download URL cdstarcat-1.6.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0852712788217266325507395240231dd4424b8e411445ee68c5771034fe6fda
BLAKE2b-256 checksum
How to use checksums
28ecfbea02f6956f7ee8c29535daebeeb85f5aeada39a39262045e17844ccfd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for cdstarcat 1.6.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page