semvec/pypi-packages huggingface dataset:
sqlemon 0.7.0
Manage sqlalchemy connections to local test and prod db's
License: MIT
Keywords: sql

*******
SQLemon
*******

Suppose we're working on a project that uses Google App Engine, Google Cloud SQL, and sqlalchemy.
In the course of testing, deploying etc., we want to connect to a couple of databases in different ways:

* App Engine project talking to production db

* Local tools (like mysql client or alembic) talking to production db

* Local tools (like mysql client or alembic) talking to local db


Getting all the connections strings etc. right is kind annoying.
This package helps solve that problem.

Scripts
*******

Installing `SQLemon` puts two scripts into your virtualenv's `bin/` directory:

* ``start_cloud_proxy``: Run the Google Cloud SQL proxy using an authentication token you downloaded when making a service account. See below for details about where that authentication token should be stored.

*  ``start_mysql_client``: Run MySQL client on your machine, connecting either to the production server (through the proxy) or to a local test database.

Files
*****

We assume you have your project's source on your system at ``PROJECT_ROOT/``, where
``PROJECT_ROOT`` is probably something like ``~/src/<whatever>/``.
The file layout should look something like this:

.. code-block::

    ├── PROJECT_ROOT/
    │    ├── PROJECT_NAME/  <-- important
    │    │   ├── __init__.py
    │    │   ├── alembic.ini
    │    │   ├── alembic/
    │    │   ├── lib/
    │    │   ├── models.py
    │    │   └── main.py
    │    ├── README.md
    │    ├── appengine_config.py
    |    ├── secrets.py             <-- important, GITIGNORE THIS FILE!
    │    └── app.yaml               <-- important

SQLemon needs ``app.yaml`` to have the following environment variables:

.. code-block::

    env_variables:
        INSTANCE_CONNECTION_NAME: ...
        CLOUD_SQL_USER: <Cloud SQL user name>

When running in production mode on App Engine, SQLemon will get the root user's SQL password from ``secrets.py``, which should look like this:

.. code-block::

    CLOUD_SQL_PASSWORD = <Cloud SQL user password>

MAKE SURE YOU ADD ``secrets.py`` TO GITIGNORE SO YOU DON'T PUT SECRETS IN VERSION CONTROL!

You must also have a directory at ``~/.PROJECT_NAME`` with a couple of files described below.
Here are the required layouts of the required files:

- ``~/.PROJECT_NAME/config.yaml``
  ::

    ---
    cloud:
        PASSWORD: <Cloud SQL user password>
    local:
        USER: <Local database user name, e.g. "root">
        PASSWORD: <Local database root password, e.g. "">
        HOST: "localhost"
        PORT: 3306

- ``~/.PROJECT_NAME/auth-token.json``: This is your proxy's user account auth token.

How to release
**************
::

    $ python setup.py register -r pypi(test)
    $ python setup.py sdist upload -r pypi(test)
discordcalendarbot 1.0.1
Discord bot that handle a Google calendar
License: MIT
Keywords: discord,asyncio,bot,google calendar

============================
What is discordcalendarbot ?
============================

discordcalendarbot is a Discord bot that manage a Google shared calendar.

====================
How to use the bot ?
====================

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

$ pip install discordcalendarbot

Configuration
-------------

Insert your Discord bot token in the conf.py file.
Insert your Google Calendar API informations in the client_secret.json file.

Launching
---------

$ python -m discordcalendarbot

Comands availaible
------------------

Every command start with '?' character.

**Get some help**

?help

**Add a new event to the calendar**

?add your_event

example : ?add Dentist tommorow at 5 o'clock

**Delete an event of the calendar**

?delete event_id

**Update an event of the calendar**

?update event_id

**Search events containing a given word or sentence**

?q your_word

example : ?s Dentist

**Show event at a given date**

?date YYYY-MM-DD

**Show events of the day/week/month**

?day

?week

?month
gmalthgtparser 1.1.0
Parse HGT files
License: MIT
Keywords: parser,hgt,srtm,file

GmAlt HGT file parser
=====================

.. image:: https://travis-ci.org/gmalt/hgtparser.svg?branch=master
    :target: https://travis-ci.org/gmalt/hgtparser

Introduction
------------

This package provides a class to parse and iterate over HGT file. 
It should support SRTM1 and SRTM3 formats but I must confess having only worked with SRTM3 for now.

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

.. code:: shell

    pip install gmalthgtparser

This is compatible python 2.7, 3.4, 3.5 and 3.6.

Usage
-----

Import the parser :

.. code:: python

    >>> from gmalthgtparser import HgtParser

Get the elevation of a coordinate inside a file

.. code:: python

    >>> with HgtParser('/tmp/N00E010.hgt') as parser:
    ...    alt = parser.get_elevation((1.0001, 10.0001))  # (alt, lng)
    ...    # return a tuple (line index from the top, column index from the left, elevation in meters)
    ...    print(alt)
    ...
    (0, 0, 57)

Iterate over all the elevation values inside a file.

.. code:: python

    >>> with HgtParser('/tmp/N00E010.hgt') as parser:
    ...    for elev_value in parser.get_value_iterator():
    ...        # each value is a tuple (zero based line number, zero based column number, zero based index, square corners of the elevation value, elevation value)
    ...        print(elev_value)
    ...        break
    ...
    (0, 0, 0, ((0.9995833333333334, 9.999583333333334), (1.0004166666666667, 9.999583333333334), (1.0004166666666667, 10.000416666666666), (0.9995833333333334, 10.000416666666666)), 57)

Iterate over square of elevation values inside a file.

.. code:: python

    >>> with HgtParser('/tmp/N00E010.hgt') as parser:
    ...    for elev_value in parser.get_sample_iterator(50, 50):  # (width, height)
    ...        # each value is a tuple (zero based line number of top left corner, zero based column number of top left corner, zero based index of top left corner, square corners position, list of all elevation values in square line per line)
    ...        print(elev_value[:-1])
    ...        # print number of lines in elevation values list and number of column in each line and the first elevation value
    ...        print(len(elev_value[4]), len(elev_value[4][0]), elev_value[4][0][0])
    ...        break
    ...
    (0, 0, 0, (0.95875, 9.999583333333334), (1.0004166666666667, 9.999583333333334), (1.0004166666666667, 10.04125), (0.95875, 10.04125))
    (50, 50, 57)

Release
-------

Just for me to remember

.. code:: shell

    # Increase version number and tag repository
    rm -rf gmalthgtparser.egg-info/
    python setup.py register -r pypitest
    python setup.py sdist bdist_egg bdist_wheel upload -r pypitest
    # check installation in a custom venv
    mkdir tmp
    cd tmp
    virtualenv venv
    . venv/bin/activate
    pip install -i https://testpypi.python.org/pypi gmalthgtparser
    python
    from gmalthgtparser import HgtParser
    # Then push to production
    python setup.py register -r pypi
    python setup.py sdist bdist_egg bdist_wheel upload -r pypi
wowair 0.5
WowAir Python API
License: MIT
Keywords: wowair,api

.. image:: https://img.shields.io/pypi/v/wowair.svg
   :target: https://pypi.python.org/pypi/wowair
.. image:: https://img.shields.io/pypi/l/wowair.svg
   :target: https://pypi.python.org/pypi/wowair
.. image:: https://img.shields.io/github/issues/acupy/wowair_api.svg
   :target: https://github.com/acupy/wowair_api
.. image:: https://img.shields.io/github/issues-closed/acupy/wowair_api.svg
   :target: https://github.com/acupy/wowair_api

Install
=======

Run the following command to install wowair using pip

.. code-block:: bash

    $ pip install wowair

Usage:
======

.. code-block:: python

    from wowair import WowAirQuery, Currency
    from datetime import timedelta, date

    # Fetch available cities
    cities = WowAirQuery.get_cities()
    for c in sorted(cities, key=lambda city: cities[city]):
        print cities[c], c

    # Fetch tickets for the next week from Montreal to Dublin
    query = WowAirQuery(origin='YUL', destination='DUB')
    for ticket in query.get_tickets():
        print ticket

    # Fetch Available tickets from New York to Anywhere in the NEXT 30 DAYS
    depart_date_from = date.today()
    depart_date_to = depart_date_from + timedelta(days=30)
    query = WowAirQuery(origin='EWR',
                        depart_date=(depart_date_from, depart_date_to),
                        currency=Currency.USD)
    for ticket in query.get_tickets():
        if ticket.status == 'Available':
            print ticket