semvec/pypi-packages huggingface dataset:
torrentmirror 2.0.3
TorrentMirror API and CLI interface
Requires Python: >=3.8,<4.0

\:tv\: TorrentMirror CLI and python library
=================================================

Python library to expose torrentmirror as a command and python library.

.. contents:: :local:


\:tv\: torrentmirror - TorrentMirror CLI Interface
------------------------------------------------------

You can invoke torrentmirror command to have a nice tabulated list of mirrors
in your terminal

.. image:: http://i.imgur.com/HdY0NIl.png


\:star\: Usage
++++++++++++++++

::

    TorrentMirror.

        Usage: torrentmirror [<torrent_mirror_url>]


\:star\: Installation
---------------------

This is a python package available on pypi.

With python3.8 installed just execute

.. code:: sh

    pip3.8 install torrentmirror


If it asks about permissions and you don't know what to do, you should
probably read `Jamie Matthews's article about virtualenvs <https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/>`_



\:notebook\: Library Usage
---------------------------

TorrentMirror exposes a simple get_proxies method


.. code:: python

        get_proxies(url="https://www.torrentmirror.net/", renew=False)

It returns a dict in the form

.. code:: python 

        {
          "site_name": [
            {
              "link": "http://foo.com",
              "status": "ONLINE",
              "percentage": 40
            },
            {
              "link": "http://foo.com",
              "status": "ONLINE",
              "percentage": 40
            }
          ]
        }
starformation 0.0.3
Star Formation is a Python library to quickly develop clean modular models/pipelines.

# Star Formation

Star Formation is a Python library to quickly develop clean modular models/pipelines. Geared towards usage with sklearn and keras.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install starformation
```

## Usage

```python
import starformation as sf
#Create pipeline
bf = sf.Formation()
#star() return the input
s = sf.star()
#Add star
bf.add(s)
#returns [4]
bf.run(4)
```
## add(s:star)
Add first star in formation or chain stars to the last added star.

Example: (x+1) * 3
```python
import starformation as sf
from starformation.classic import CStar

bf = sf.Formation()
s = sf.star()
bf.add(CStar(lambda x: x+1))
bf.add(CStar(lambda x: x*3))
#returns [15]
bf.run(4)
```

## link(s:star)
Add first star in formation or chain stars to the last added star.

Example: (x+1) * 3
```python
import starformation as sf
from starformation.classic import CStar

bf = sf.Formation()
s = sf.star()
bf.add(CStar(lambda x: x+1))
bf.add(CStar(lambda x: x*3))
#returns [15]
bf.run(4)
```

## Run(input, cores = none)
Input is fed into the first star.Cores specify how many processes. 

Chain stars. Execution star.action() -> star2.action()
```python
import starformation as sf

bf = sf.Formation()
s = sf.star()
bf.add(s)
bf.link(sf.star())
bf.link(sf.star())
bf.link(sf.star())
bf.link(sf.star())
#return [4,4,4,4]
bf.run("example",2)
#also return [4,4,4,4] but not multicore
bf.run("example")
```

##CStar
Makes a custom function.
```python
import starformation as sf
from starformation.classic import CStar

def add(x):
    return x+1

bf = sf.Formation()
bf.add(CStar(add))

#returns [5]
bf.run(4)
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[GPL](https://choosealicense.com/licenses/gpl-3.0)