semvec/pypi-packages huggingface dataset:
trompace-client 0.5
A python library to read from and write to the Trompa CE
Requires Python: >=3.7

# 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

```python
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:

 * https://pypi.org/project/trompace-client/
 * https://trompace-client.readthedocs.io/en/latest/
 
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".
apyzme-JGarderon 1.0.0
Création rapide d'API Python pour le script Shell
Requires Python: >=3.6

# Apyzme

## Présentation 

Ce module permet de générer facilement une API pour le scripting de python dans Shell, à partir d'un simple décorateur et d'une classe maîtresse, instanciée. 

Attention : une fois la fonction "lancer" du module, celle s'excute jusqu'à la sortie. Les "exception" ne sont pas volontairement pas gérés et sont laissés à la libre appréciation du développeur.  

---

## Métadonnées 

  - Version : 1 
  - Mainteneur : Julien Garderon <julien.garderon@gmail.com> 
  - URL du dépôt : https://git.services.nothus.fr/communaute/apyzme 
  - Licence : MIT 

---

## Exemple 

	$ python3 apyzme.py 
	usage: Apyzme [-h] [--arg1 ARG1] [--arg2 ARG2] [--version] action
	Apyzme: error: the following arguments are required: action

	$ python3 apyzme.py -h
	usage: Apyzme [-h] [--arg1 ARG1] [--arg2 ARG2] [--version] action
     
	Ce module permet de générer facilement une API pour le scripting de python dans Shell, à partir d'un simple décorateur et d'une classe maîtresse, instanciée. Version 1 - Julien Garderon <julien.garderon@gmail.com>
     
	positional arguments:
	  action       quelle action entreprendre ?
     
	optional arguments:
	  -h, --help   show this help message and exit
	  --arg1 ARG1  Ceci une courte description de l'argument n°1.
	  --arg2 ARG2  Ceci une courte description de l'argument n°2.
	  --version    show program's version number and exit

	$ python3 apyzme.py --arg1 truc toto
	arg1 : 'truc'
	action 'toto' sur les arguments : Namespace(action='toto', arg1=["arg1 : 'truc'"], arg2=None)

	$ python3 apyzme.py --arg1 truc toto
	arg1 : 'truc'
	action 'toto' sur les arguments : Namespace(action='toto', arg1=["arg1 : 'truc'"], arg2=None)

	$ python3 apyzme.py --arg1 truc --arg1 bidule toto
	arg1 : 'truc'
	arg1 : 'bidule'
	action 'toto' sur les arguments : Namespace(action='toto', arg1=["arg1 : 'truc'", "arg1 : 'bidule'"], arg2=None)
flake8-dunder-class-obj 0.1.1
A flake8 plugin to report on double underscore class objects
Requires Python: >=3.6

# flake8-dunder-class-obj

A flake8 plugin which marks classes with leading double-underscored (dunder) class
objects. A double underscored class object is subject to "Name Mangling", which can be a
surprising behavior.

```python
class Test:
    __my_var = 1
```

This is an example of a variable with a double underscore. It will be flagged with a
message:
`DCO100: class objects should not begin with __ unless name mangling is desired`

See:
[Python private variables](https://docs.python.org/3/tutorial/classes.html#private-variables)
for more information about name mangling.