semvec/pypi-packages huggingface dataset:
gtfs.py 0.1
A simple python library for parsing, editing and writing GTFS files

# gtfs.py

A simple python library for parsing, editing and writing GTFS files.

GTFS (General Transit Feed Specification) is a format which determined by google in order to defines a common format for public transportation static data (schedules, stops location, etc.). For more information about the format you can read [here](https://developers.google.com/transit/gtfs) and [here](https://en.wikipedia.org/wiki/General_Transit_Feed_Specification).

## Getting Started

### Installing

You can install this package with pip.

```
pip install gtfs.py
```

If you want to contribute to the library code, you have to clone if from github and install it as a developer.

```
git clone https://github.com/WYishai/gtfs.py.git
cd gtfs.py
cd src
python setup.py develop
```

### Usage

All examples are intended for writing in a python shell (or python code file).

Creating a new TransitData object:
```
from gtfspy import TransitData

td = TransitData()
...
```

Loading existing GTFS file:
```
from gtfspy import TransitData

gtfs_file_path = "/path/to/file"
td = TransitData(gtfs_file_path)
...
```

Additional examples are in the [examples folder](https://github.com/WYishai/gtfs.py/blob/master/examples) in the [GIT repository](https://github.com/WYishai/gtfs.py).

## Running the tests

This project contains unit tests that covers most of the source code. In order to run the tests, you must first install the project as a developer (as mentioned at the _Installing_ section. After the installation you can run them by typing the following commands in your shell:
```
cd [PROJECT_DIR]\tests
python -m unittest discover gtfspy
```
Of course, _[PROJECT_DIR]_ must be replaced by the path you cloned the GIT repository into it.

## License

This project is licensed under the Apache-2.0 License - see the [LICENSE](https://github.com/WYishai/gtfs.py/blob/master/LICENSE) file for details
takumi-cli 0.1.2
Takumi service framework command line toolkit

takumi-cli: Takumi command line toolkit
=======================================

.. image:: https://travis-ci.org/elemepi/takumi-cli.svg?branch=master
    :target: https://travis-ci.org/elemepi/takumi-cli

Command line tool for managing Takumi services.

Install
-------

.. code:: bash

    $ pip install takumi-cli

Usage
-----

.. code-block:: bash

    $ takumi -h

Run service
~~~~~~~~~~~

.. code-block:: bash

    $ takumi serve

Deploy an application
~~~~~~~~~~~~~~~~~~~~~

To deploy using ansible, extra requirements should be installed:

.. code:: bash

    $ pip install takumi-cli[deploy]


Add ``deploy`` entry to *app.yaml*:

.. code:: yaml

    deploy:
      vars:
        version: HEAD
      targets:
        testing:
          - localhost
          - testing.com
        prod:
          - app.prod

Using the following command to deploy:

.. code-block:: bash

    $ takumi deploy testing -t deploy

The deploy command is implemented using `ansible <https://github.com/ansible/ansible>`_.

To deploy crontab, add the following config to *app.yaml*

.. code-block:: yaml

    deploy:
      crontab:
        - name: check dirs
          schedule: "0 5,2 * * *"
          job: 'ls -alh > /dev/null'

        - name: say hello
          schedule:
            minute: 0
            hour: 5,2
          job: 'scripts/say_hello.py'

then run:

.. code-block:: bash

    $ takumi deploy <target> -t cron

Cron jobs are run under app working directory ``/srv/{{ app_name }}``.

Start an interactive shell
~~~~~~~~~~~~~~~~~~~~~~~~~~

To start an IPython shell, extra requirements should be installed:

.. code:: bash

    $ pip install takumi-cli[shell]

Start the shell:

.. code:: bash

    $ takumi shell -t <host> -- <ipython args>