semvec/pypi-packages huggingface dataset:
martapy 1.1
Wrapper for MARTA realtime rail/bus APIs
License: MIT
Keywords: MARTA API rail train Atlanta Georgia GA ATL itsmarta

=======
MARTApy
=======
Python wrapper for MARTA realtime rail and bus APIs:
http://www.itsmarta.com/app-developer-resources.aspx

============
Installation
============
To install via *pip*, just:

.. code-block:: bash

    $ pip install martapy

Or, locally from the same directory as ``setup.py``:

.. code-block:: bash

    $ python setup.py install

====
Rail
====
To get a list of train arrivals:

.. code-block:: python

    from martapy import RailClient

    rail_client = RailClient(api_key="your_api_key")
    arrivals = rail_client.arrivals()

This returns an instance of ``martapy.rail.Arrivals(list)`` which
has a few handy methods to filter results further.

For example, to print the destination and waiting time for upcoming
arrivals at *Peachtree Center Station*:

.. code-block:: python

    from martapy import RailClient

    rail_client = RailClient(api_key="your_api_key")
    peachtree_station = rail_client.arrivals().by_station('peachtree')

    for arrival in peachtree_station:
        print("To: {}, When: {}".format(arrival.destination, arrival.waiting_time))

With output that would look something like::
    To: Airport, When: Arriving
    To: Lindbergh, When: 16 min
    To: Doraville, When: 19 min

Filters
-------
To narrow results, ``martapy.rail.Arrivals(list)`` has
a number of properties/methods:

- Arrivals by **line**:
  ``red_line``
  ``blue_line``
  ``green_line``
  ``gold_line``
- Arrivals by **direction**:
  ``northbound``
  ``eastbound``
  ``westbound``
  ``southbound``
- Arrivals by **waiting time**:
  ``boarding``
  ``arriving``
  ``arrived``
- Arrivals grouped by **station name**:
  ``Arrivals.stations``
- Arrivals grouped by **train ID**:
  ``Arrivals.trains``
- Arrivals associated with a **specific station**:
  ``Arrivals.by_station('station name')``

These can be chained as well for more specific results. For example, to
get all arrivals for the red line which are heading southbound:

.. code-block:: python

    from martapy.rail import RailClient

    rail_client = RailClient(api_key="your_api_key")
    arrivals = rail_client.arrivals().red_line.southbound

Other properties
----------------
Each ``Arrivals`` instance returned is just a list of
``martapy.rail.Arrival`` objects, with properties similar to the filters
above (*station, direction, event\_time, line...*). To get the original
JSON string back, use ``Arrival.json``.

====
Bus
====
To get a list of active buses:

.. code-block:: python

    from martapy import BusClient

    bus_client = BusClient()
    buses = bus_client.buses()

To get active buses for a particular route number, use
``BusClient.buses(route=111)`` (or any other route number)

To filter this list down further, use ``filter()`` on the returned ``Buses``
list. For example, to return only *Westbound* buses:

.. code-block:: python

    from martapy import BusClient

    bus_client = BusClient()
    buses = bus_client.buses().filter(direction='Westbound')
labpack 0.9
A Collection of Methods for Data Collection & Processing
License: MIT

.. image:: https://img.shields.io/pypi/v/labpack.svg
    :target: https://pypi.python.org/pypi/labpack
.. image:: https://img.shields.io/pypi/l/labpack.svg
    :target: https://pypi.python.org/pypi/labpack

=======
labPack
=======
*A Collection of Methods for Data Collection & Processing*

:Downloads: http://pypi.python.org/pypi/labPack
:Source: https://github.com/collectiveacuity/labPack

============
Installation
============
>From PyPi::

    $ pip install labpack

>From GitHub::

    $ git clone https://github.com/collectiveacuity/labPack
    $ cd labPack
    $ python setup.py install

Getting Started
---------------
This module is designed to make the process of retrieving, managing and processing data more uniform across a variety of different sources and structures. The classes and methods in this module aggregate and curate python resources and online APIs to provide a set of best practices for handling data across laboratory projects.

Create an unique ID for records::

    from labpack.records.id import labID

    id = labID()
    url_safe_id_string = id.id48
    id_datetime = id.epoch
    id_mac_address = id.mac

Save record data in local user data::

    from labpack.storage.appdata import appdataClient

    msg_key = '%s/%s.yaml' % (id_mac_address, id_datetime)
    msg_details = { 'dt': id_datetime, 'mac': id_mac_address, 'msg': 'Text me back' }
    msg_client = appdataClient('Outgoing', 'My Team', 'My App')
    mgs_client.create(msg_key, msg_details)

For more details about how to use labPack, refer to the
`Reference Documentation on GitHub
<https://github.com/collectiveacuity/labPack/blob/public/REFERENCE.rst>`_
azure-cli-shell 0.2.2
Microsoft Azure Command-Line Interactive Shell
License: MIT

Azure CLI Interactive Shell
***************************

The interactive shell for Microsoft Azure CLI (Command Line Interface)
######################################################################

* Interactive Tutorials
* Lightweight Drop Down Completions 
* Auto Cached Suggestions 
* Dynamic parameter completion 
* Defaulting scopes of commands
* On the fly descriptions of the commands AND parameters 
* On the fly examples of how to utilize each command 
* Optional "az" component 
* Query the previous command
* Navigation of example pane 
* Optional layout configurations 
* Fun Colors 


Installation
############
.. code-block:: console

   $ pip install --user azure-cli-shell


Running
#######

To start the application

.. code-block:: console

   $ az-shell


Then type your commands and hit [Enter]

To use commands outside the application

.. code-block:: console

   $ #[command]


To Search through the last command as json
jmespath format for querying

.. code-block:: console

   $ ? [param]


*Note: Only if the previous command dumps out json, e.g. vm list*

To only see the commands for a command

.. code-block:: console

   $ %% [top-level command]


To undefault a value

.. code-block:: console

   $ ^^ [value to undefault]


Use Examples
############

Type a command, for example:

.. code-block:: console

   $ vm create


Look at the examples

*Scroll through the pane with Control Y for up and Control N for down #*

Pick the example you want with:

.. code-block:: console

   $ vm create :: [Example Number]


Dev Setup
#########

Fork and clone repository

.. code-block:: console

   $ . dev_setup.py


To get the Exit Code of the previous command:

.. code-block:: console

   $ $


Clear History
#############

Only clears the appended suggestion when you restart the shell

.. code-block:: console

   $ clear


Docker Image
############

There is a docker image on docker hub

.. code-block:: console

   $ docker pull oakeyc/az-cli-shell:latest
   $ docker run -it oakeyc/az-cli-shell:latest
   root#: az-shell



.. :changelog:

Release History
===============
0.2.0
++++++++++++++++++

* Public Preview release


0.1.1
++++++++++++++++++

* Preview release
jmatt-sqre-codekit 2.1.0
LSST Data Management SQuaRE code management tools
License: MIT
Keywords: lsst

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

# sqre-codekit

LSST DM SQuaRE misc. code management tools

## Installation

sqre-codekit runs on Python 2.7 or 3.5. You can install it with

```bash
pip install sqre-codekit
```

This will also install dependencies: `github3`, `urllib3`, `requests`, `progress` and `gitpython`.

## Example usage

To generate a personal user token (you will be prompted for your password):

```bash
github-auth -u {{username}}
```

Or to generate a token with delete privileges:

```bash
github-auth -u {{username}} --delete-role
```

To clone all github.com/lsst repos into an GitHub organization called `{{username}}-shadow`:

```bash
github-fork-repos -u {{username}} --org {{username}}-shadow
```
    
You'll need to create this shadow organization in advance. Working in a shadow organization is useful for testing.

If you want to take a recent fork, you will need to delete the existing shadow repos first:

```bash
github-delete-shadow -u {{username}}
```

That requires a token with delete privileges. 

To get more debugging information, set your `DM_SQUARE_DEBUG` variable before running any command, or use the `-d` debug flag on the command line.

## Available commands

- `github-auth`: create a GitHub authentication token.
- `github-fork-repos`: fork repositories into a shadow GitHub organization.
- `github-list-repos`: list repositories in a GitHub organization, showing teams.
- `github-mv-repos-to-team`: move repositories from one team to another.
- `github-tag-version`: tag all repositories in a GitHub org using a team-based scheme.
- `lsst-bp`: upgrade LSST DM code to [RFC-45](https://jira.lsstcorp.org/browse/RFC-45)-style.

Use the `--help` flag with any command to learn more.

## Development

To develop codekit, create a Python virtual environment, and

```bash
git clone https://github.com/lsst-sqre/sqre-codekit.git
cd sqre-codekit
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
python setup.py develop
```

Note that all scripts (in `codekit/cli`) are installed using setuptools `entry_points`. See `setup.py`.

Tests can be run with [pytest](http://pytest.org/latest/):

```bash
py.test tests
```