semvec/pypi-packages huggingface dataset:
ctshed 0.1.1
A Docker based CLI Tools manager.

Ctshed - Container Toolshed
===========================
![Travis (.org)](https://img.shields.io/travis/kkarolis/ctshed.svg)
![Coveralls github](https://img.shields.io/coveralls/github/kkarolis/ctshed.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ctshed.svg)
![PyPI](https://img.shields.io/pypi/v/ctshed.svg)
![GitHub](https://img.shields.io/github/license/kkarolis/ctshed.svg)
[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)


Container Toolshed. A CLI tool manager for creating container centric
namespaces with specific tools installed. This could possibly help to easier
manage cli tools for users (multiple tool versions, no screw-up with os level
package executables)

Example
-------

```sh
# a single tool executable, debian:stable implicit source
ctshed install --packages=curl --cmd=curl mycurl
# downloads the P04156.fasta file and saves it in the current directory
ctshed-mycurl -LO https://www.uniprot.org/uniprot/P04156.fasta

# a tool namespace 
ctshed install --source=biocontainers/blast:2.2.31 myblast
ctshed-myblast curl -LO https://www.uniprot.org/uniprot/P04156.fasta
ctshed-myblast curl -LO ftp://ftp.ncbi.nih.gov/refseq/D_rerio/mRNA_Prot/zebrafish.1.protein.faa.gz
ctshed-myblast gunzip zebrafish.1.protein.faa.gz
ctshed-myblast makeblastdb -in zebrafish.1.protein.faa -dbtype prot
ctshed-myblast blastp -query P04156.fasta -db zebrafish.1.protein.faa -out results.txt
```

Installation
------------
```sh
pip install ctshed
```

The tool places binaries to `~/bin` directory blindly without checking if it
exists or if theres a nameclash. Make sure `~/bin` exists in your path. E.g.
place something like this in `~/.bash_rc`:

```sh
#~/.bash_rc file
export PATH="$HOME/bin:$PATH"
```

The tool depends on `docker` binary existing on the host system. You have to
install it if you don't have it. Installation of docker on `ubuntu` systems is described [docker-ce/ubuntu](https://docs.docker.com/install/linux/docker-ce/ubuntu/)


Features
--------

* Create a docker based tool namespace
* Create an executable with specific tool installation


Principles of working
---------------------

1. An image is created during the install step and some name is automatically given to it.
2. An executable is created in executable directory of the users workspace.
3. Executable contains a container run command with stdin/stdout/stderr
   attached and /home directory mounted.

Testing
-------

```sh
python -m unittest discover tests
```

Limitations
-----------

There are limitations with using container as a wrapper for command line.
* Configuration might not be picked up by the tool.
* Input/Output works correctly only under /home directory
* Security, because /home is mounted
* More will come.
her 1.5.0
A new file format
Keywords: python,her

HER, a new Text Format |Build Status|
=====================================

Search informations about the Syntax and Types using the `Wiki
section`_.

Content table
-------------

-  `What’s HER?`_
-  `Why shall I use HER?`_
-  `Why HER?`_
-  **Python Module**

   -  `Installation`_
   -  `Import Module`_
   -  `Encode a Dictionary`_
   -  `Decode a String`_
   -  `HER class`_
   -  `Documentation`_

What’s HER?
-----------

HER is text format, like XML/Json. The difference is that HER is easier
than others. Just see:

::

    - Category -
        >> Array[]
        * Array[] = "Umh, that's pretty good!"

Why shall I use HER?
--------------------

As I said before, HER is **simple** and **easy to use**. You can pass
informations, or better, store informations\* and document them.

Feel the difference:

**XML:**

.. code:: xml

    <christmas>
        <greetings>Merry christmas!</greetings>
        <greetings>Spam, Python, Eggs</greetings>
    </christmas>

**HER:**

::

    - Christmas -
        >> Greetings[]
        * Greetings[] = "Merry christmas!"
        * Greetings[] = "Spam, Python, Eggs"

Python Module
=============

Installation
------------

You can easily install that module using `pip`_:

.. code:: bash

    pip install her

Or, if you want to upgrade the module:

.. code:: bash

    pip install --upgrade her

Import Module
-------------

You must use ``import her`` to import all the HER module.

.. code:: python

    import her
    ...

Encode a Dictionary
-------------------

Just use the ``encode`` function.

.. code:: python

    from her import encode
    her = encode({'Category':{'hello world':True}})
    print(her)

Output:

::

    - Category -
        * hello world = True

Decode a String
---------------

Just use the ``decode`` function.

.. code:: python

    from her import decode
    dictionary = decode("- Category -\n    * hello world = True")
    print(dictionary)

Output:

::

    {'Category':{'hello world':True}}

HER class
---------

You can use the ``HER`` class to call less
``encode`` & ``decode`` functions and optimize
your codebase. It updates all its attributes
automatically.

.. code:: python

        x = her.HER()
        x.value = {"foo": {"lol": 1}}
        print(repr(x.representation)) # Output: '- foo -\n    * lol = 1'

You can also pass a parameter (*dict* or *str*):

.. code:: python

        x = her.HER('- foo -\n    * lol = 1')
        print(x.value) # Output: {"foo": {"lol": 1}}

        y = her.HER({"foo": {"lol": 1}})
        print(repr(x.representation)) # Output: '- foo -\n    * lol = 1'


.. _Wiki section: https://github.com/hearot/HER/wiki
.. _What’s HER?: #whats-her
.. _Why shall I use HER?: #why-shall-i-use-her
.. _Why HER?: #why-her
.. _Installation: #installation
.. _Import Module: #import-module
.. _Encode a Dictionary: #encode-a-dictionary
.. _Decode a String: #decode-a-string
.. _HER class: #her-class
.. _Documentation: http://her.readthedocs.org
.. _pip: https://pypi.org/project/pip/

.. |Build Status| image:: https://travis-ci.org/hearot/HER.svg?branch=master
   :target: https://travis-ci.org/hearot/HER
arnparse 0.0.2
Parse ARNs using Python
Keywords: aws,arn,parse

arnparse
========

Parse ARNs using Python

[![Build Status](https://travis-ci.org/PokaInc/arnparse.svg?branch=master)](https://travis-ci.org/PokaInc/arnparse)

Motivation
----------

Sometimes, you want to parse an Amazon Resource Name (ARN) into its
components to get some useful information from the ARN (e.g. AWS region,
account ID, etc).

You can find documentation on ARNs and their components here:
https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

Installation
------------

`pip install arnparse`

Examples
--------

### S3 Object

```python
from arnparse import arnparse

arn = arnparse('arn:aws:s3:::my_corporate_bucket/exampleobject.png')

assert arn.partition == 'aws'
assert arn.service == 's3'
assert arn.region is None
assert arn.account_id is None
assert arn.resource_type is None
assert arn.resource == 'my_corporate_bucket/exampleobject.png'
```

### VPC

```python
from arnparse import arnparse

arn = arnparse('arn:aws:ec2:us-east-1:123456789012:vpc/vpc-fd580e98')

assert arn.partition == 'aws'
assert arn.service == 'ec2'
assert arn.region == 'us-east-1'
assert arn.account_id == '123456789012'
assert arn.resource_type == 'vpc'
assert arn.resource == 'vpc-fd580e98'
```

### CloudWatch Alarm

```python
from arnparse import arnparse

arn = arnparse('arn:aws:cloudwatch:us-east-1:123456789012:alarm:MyAlarmName')

assert arn.partition == 'aws'
assert arn.service == 'cloudwatch'
assert arn.region == 'us-east-1'
assert arn.account_id == '123456789012'
assert arn.resource_type == 'alarm'
assert arn.resource == 'MyAlarmName'
```

### SNS Topic

```python
from arnparse import arnparse

arn = arnparse('arn:aws:sns:*:123456789012:my_corporate_topic')

assert arn.partition == 'aws'
assert arn.service == 'sns'
assert arn.region == '*'
assert arn.account_id == '123456789012'
assert arn.resource_type is None
assert arn.resource == 'my_corporate_topic'
```

### API Gateway

```python
from arnparse import arnparse

arn = arnparse('arn:aws:apigateway:us-east-1::a123456789012bc3de45678901f23a45:/test/mydemoresource/*')

assert arn.partition == 'aws'
assert arn.service == 'apigateway'
assert arn.region == 'us-east-1'
assert arn.account_id is None
assert arn.resource_type is None
assert arn.resource == 'a123456789012bc3de45678901f23a45:/test/mydemoresource/*'
```