Skip to main content
=================
Markus Binsteiner
=================

:Author: Markus Binsteiner

.. contents::
1 pyclist
---------

A small framework to quickly create cli scripts for REST (or other) APIs.

1.1 Usage
~~~~~~~~~

1.1.1 Requirements for api class (at the moment -- might be changed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Constructor takes named arguments which are present in the resulting argparse namespace (it will be converted to a dict and passed to the constructor)

- methods need to start with "call\_" in order to be automatically added as a sub-command

- [some restritions as to file types maybe]

1.1.2 Example code
^^^^^^^^^^^^^^^^^^

.. code-block:: python

# create the pyclist object
pyclist_obj = pyclist('proj', 'A commandline client for CeR project management.')

# add some basic options that are used for all sub-commands (optional)
pyclist_obj.root_parser.add_argument('--url', '-u', help='API base url', default=self.config.api_url)
pyclist_obj.root_parser.add_argument('--username', help='API username', default=self.config.api_username)
pyclist_obj.root_parser.add_argument('--token', help='API token', default=self.config.api_token)

# register the api class
pyclist_obj.add_command([api_class])

# execute the selected method (using an auto-created api object)
result = pyclist_obj.execute




History
-------

0.1.0 (2015-01-11)
---------------------

* First release on PyPI.

Metadata

Release files for pyclist 0.2.7

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

Source distribution (sdist)

Source distribution for pyclist 0.2.7
File Size Uploaded Provenance Actions
pyclist-0.2.7.tar.gz 22.1 kB Without provenance Details for pyclist-0.2.7.tar.gz

Release files / pyclist-0.2.7.tar.gz

Download URL pyclist-0.2.7.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b0e3b6086f7966940ea693c28ec8efdd3609a6df88ccc9f7f07fb6c8885d4011
BLAKE2b-256 checksum
How to use checksums
0acc51a01860b1b491a1563cea5ade165184fb03de56b3af678095f9a90f63e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyclist 0.2.7

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