Skip to main content

Trompa Contributor Environment Python Client

Music Technology Group, Universitat Pompeu Fabra, Barcelona

A python library to read from and write to the Trompa Contributor Environment (Trompa CE).

Installation

To install, run

python setup.py install

to install the package and dependencies

Using the library

This library connects to an existing Trompa CE instance. For testing on a local environment the docker containers from https://github.com/trompamusic/ce-api can be run.

Basic example code for using the library to add an artist to the Trompa CE.

To use the library an existing Trompa Contributor environment

import trompace.connection
from trompace.config import config
from trompace.mutations import person

config.load('trompace.ini')

mutation_musicbrainz = person.mutation_create_person(
    creator="https://github.com/trompamusic/trompa-ce-client/tree/v0.1/demo",
    contributor="https://musicbrainz.org",
    source="https://musicbrainz.org/artist/8d610e51-64b4-4654-b8df-064b0fb7a9d9",
    format_="text/html",
    title="Gustav Mahler - MusicBrainz",
    name="Gustav Mahler",
    birth_date="1860-07-07",
    death_date="1911-05-18",
    family_name="Mahler",
    given_name="Gustav",
    gender="male",
    language="en"
)

response = trompace.connection.submit_query(mutation_musicbrainz, auth_required=True)

print(response)

License

Copyright 2019 Music Technology Group, Universitat Pompeu Fabra

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Development

This package is published on pypi, and has documentation on readthedocs:

To build and publish a new version:

git tag v0.3
git push --tags
python setup.py sdist bdist_wheel
twine upload dist/*

To release a version on github after pushing the tag, go to https://github.com/trompamusic/trompa-ce-client/releases/new and choose the tag that you just pushed.

To build docs, go to https://readthedocs.org/projects/trompace-client/ and click "Build version".

Metadata

Release files for trompace-client 0.5

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

Source distribution (sdist)

Source distribution for trompace-client 0.5
File Size Uploaded Provenance
trompace-client-0.5.tar.gz 81.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for trompace-client 0.5
File Interpreter ABI Platform
trompace_client-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 176.4 kB

Release files / trompace-client-0.5.tar.gz

Download URL trompace-client-0.5.tar.gz
Size 81.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b742419f4a6bc447f72b64d0f48b2456ca89159c1b19920793f3337a812e1791
BLAKE2b-256 checksum
How to use checksums
8f85e12f5fdc88fc2bac8383c98348e5868e67a9e0234490c5e0606f04d826ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.7.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / trompace_client-0.5-py3-none-any.whl

Download URL trompace_client-0.5-py3-none-any.whl
Size 94.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c4ea75cbd31464f6fe76cb7893df237fdd33458f29373c003531e28b4aab8ae
BLAKE2b-256 checksum
How to use checksums
51c1abc86b7229a94034be9f3c9ae0253733c2a90ec8908d2e83ec5c377cf260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.7.0 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Security for trompace-client 0.5

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