semvec/pypi-packages huggingface dataset:
wsgi_cors_middleware 0.0.2
Cross Origin Resource Sharing (CORS) Middleware for WSGI Applications.
License: MIT
Keywords: wsgi

WSGI-CORS-Middleware
====================

Cross Origin Resource Sharing (CORS) Middleware for WSGI Applications.

Usage
-----

Use the ``CorsMiddleware`` from ``wsgi_cors_middleware``.

.. code:: python

    from wsgi_cors_middleware import CorsMiddleware
    application = CorsMiddleware(
        application,
        origin='*',
        methods=['POST', 'PUT'],
        headers=['Content-Type', 'Authorization']
    )

Options
~~~~~~~

- ``origin``: URI that may access this application
- ``credentials``: indicates that the request can be made using credentials
- ``headers``: list of headers that may be used when accessing this application
- ``methods``: list of methods allowed to access this application
- ``expose_headers``: list of headers to be exposed to the browser
- ``max_age``: number of seconds a preflight request may be cached
bygone 0.1
A python package and command-line tools to Life-logging
License: MIT
Keywords: life-logging

bygone
===========================

A python package and command-line tools to *Life-logging*.

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

The easiest way to install bygone is to use
``pip``:

``bash pip install bygone``

Or you can clone this repo and install from a local version of the code:

``bash git clone git@github.com:thespacedoctor/bygone.git cd bygone python setup.py install``

Development
-----------

If you want to tinker with the code, then install in development mode.
This means you can modify the code from your cloned repo:

``bash git clone git@github.com:thespacedoctor/bygone.git cd bygone python setup.py develop``

`Pull
requests <https://github.com/thespacedoctor/bygone/pulls>`__
are welcomed!

Issues
------

Please report any issues
`here <https://github.com/thespacedoctor/bygone/issues>`__.

License
-------

Copyright (c) 2016 David Young

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
django-swiss-knife 0.1.9
A Django utils compilation.
License: MIT

.. image:: https://github.com/sthima/django-swiss-knife/raw/master/logo.png   
   :alt: Django Swiss Knife   
   :target: https://github.com/sthima/django-swiss-knife   

|LICENSE| |Travis|


------------------

Django Swiss Knife is a collection of tools and helpers to create faster Django
applications.

Quick start
-----------

1. Install the library with pip: `pip install django-swiss-knife`

2. Add django_swiss_knife to your INSTALLED_APPS settings

3. Import django_swiss_knife on your project

.. |LICENSE| image:: https://img.shields.io/pypi/l/django-swiss-knife.svg?style=flat-square   
   :alt: PyPI - License   
   :target: https://github.com/sthima/django-swiss-knife/blob/master/LICENSE

.. |Travis| image:: https://img.shields.io/travis/sthima/django-swiss-knife/master.svg?style=flat-square   
   :alt: Travis branch   
   :target: https://travis-ci.org/sthima/django-swiss-knife
wsgi_graphql 0.0.2
Create a WSGI Application for a GraphQL schema.
License: MIT
Keywords: graphql

WSGI-GraphQL
=============

Create a WSGI Application for a GraphQL schema.

Usage
-----

Use the ``GraphQLApplication`` from ``wsgi_graphql``.

.. code:: python

    from wsgi_graphql import GraphQLApplication
    application = GraphQLApplication(schema)

Options
~~~~~~~

- ``schema``: ``GraphQLSchema`` to serve with this application.
- ``execute_options``: Dictionary of options to be passed to ``graphql.execute``
  via ``graphql_server.run_http_query``. If the dictionary values are callable
  they will be called (see example below).
- ``format_error``: Function to format errors (defaults to ``graphql_server.default_format_error``).
- ``encode``: Function to encode dictionary (defaults to ``graphql_server.json_encode``).

All ``execute_options`` can be ``callable`` (i.e. functions) and will receive
the current ``environ`` as an argument. This can be used for tasks like parsing
authentication tokens and inserting results as ``context_value``.

This snippet from the ``example.py`` sets the ``context_value`` to a dictionary
containing the value of the request header ``greet``.

.. code:: python

  application = GraphQLApplication(schema, execute_options={
      'context_value': lambda environ: {
          'greet': environ.get('HTTP_GREET')
      }
  })

This ``curl`` command will return ``{"data":{"hello":"world"}}``.

.. code:: bash

  curl --request POST\
   --url http://localhost:8080\
   --header 'Content-Type: application/graphql'\
   --header 'greet: world'\
   --data 'query {hello}'
ios-notification 0.1.3
A Django plugin for Apple Notification Service
License: MIT
Keywords: django ios push notification apple apns

django-ios-notifications
========================

.. image:: https://travis-ci.org/nnsnodnb/django-ios-notifications.svg?branch=master
    :target: https://travis-ci.org/nnsnodnb/django-ios-notifications
.. image:: https://coveralls.io/repos/github/nnsnodnb/django-ios-notifications/badge.svg?branch=master
    :target: https://coveralls.io/github/nnsnodnb/django-ios-notifications?branch=master
.. image:: https://badge.fury.io/py/ios-notification.svg
    :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/pyversions/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/status/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/wheel/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/format/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/implementation/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://img.shields.io/pypi/l/ios-notification.svg
   :target: https://pypi.python.org/pypi/ios-notification
.. image:: https://readthedocs.org/projects/ios-notifications/badge/?version=latest
   :target: http://ios-notifications.readthedocs.io/?badge=latest
   :alt: Documentation Status

A Django plugin for Apple Push Notification Service.

Supported python versions
~~~~~~~~~~~~~~~~~~~~~~~~~

2.7, 3.4, 3.5, 3.6

Supported django versions
~~~~~~~~~~~~~~~~~~~~~~~~~

1.7 - 1.11, 2.0 (Only Python3.x or later)

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

.. code:: bash

    $ pip install ios-notification

Add ``notification`` into ``INSTALLED_APPS`` in ``settings.py`` file

.. code:: python

    INSTALLED_APPS += (
        'notification',
    )

Add ``notification`` routing in ``urls.py`` file

.. code:: python

    from django.conf.urls import include

    urlpatterns += (
        url(r'^ios/', include('notification.urls', namespace='notification')),
    )

Author
------

nnsnodnb

LICENSE
-------

MIT License
gis 0.2.1
async + http2 + postgis + openapi + geo+json-seq
License: MIT

Opinionated Python + Postgis GIS.

EXPERIMENT ONLY *NOT* FOR PRODUCTION

Usage:

pip install gis
python -m gis index -file=myvector.geojson
python -m gis index -file=myraster.tif
python -m gis run 

Features:

- [ ] OpenAPI 3.0 compliant
- [ ] Provides access to features
- [ ] Provides access to layers (collection of features)
- [ ] Provides access to datasets (collection of layers)
- [ ] Provides access to maps (collection of datasets)
- [ ] Supports access to cloud optimized geotiffs


/dataset/<id>
/map/<id>
/api
/<layer_name>/<id>
/precipitation/ <- stac catlog of folders
/precipitation/<folder>/LC08_20171112_120012/ <- stac item for this dataset with overviews, etc and links to the actual geotiff.
/precipitation/<folder>/LC08_20171112_120012/ <- stac item for this dataset with overviews, etc and links to the actual geotiff.
/precipitation/<folder>/LC08_20171112_120012/1.tif <- cloud optimized geotiff
aiodl 0.5.7
Aiodl -- Yet another command line download accelerator.
License: MIT
Requires Python: >=3.5
Keywords: asynchronous download

Aiodl
-----

|PyPI version|

Aiodl – Yet another command line download accelerator.

Features
--------

-  Accelerate the downloading process by using multiple connections for
   one file.
-  Reasonable retries on network errors.
-  Breakpoint resume.

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

.. code:: bash

    $ pip3 install aiodl --user
    # or
    $ sudo pip3 install aiodl

Usage
-----

Commandline
~~~~~~~~~~~

Simply call ``aiodl`` with the URL:

.. code:: console

    $ aiodl https://dl.google.com/translate/android/Translate.apk

      File: Translate.apk
      Size: 16.8M
      Type: application/vnd.android.package-archive

     11%|████▎                                  | 1.78M/16.0M [00:03<00:26, 565KB/s]

Hit Ctrl+C to stop the download. Aiodl will save necessary information
to ``<download-file>.aiodl``, next time it will automatically continue
to download from here.

Other arguments:

::

    --fake-user-agent, -u  Use a fake User-Agent.
    --num-tasks N, -n N    Limit number of asynchronous tasks.
    --max-tries N, -r N    Limit retries on network errors.

In your script
~~~~~~~~~~~~~~

.. code:: python

    import aiodl

    # in an async function
    filename = await aiodl.download('https://dl.google.com/translate/android/Translate.apk', quiet=True)

.. |PyPI version| image:: https://badge.fury.io/py/aiodl.svg
   :target: https://badge.fury.io/py/aiodl
su.aes 0.1.4
A simple encrypt/decrypt lib based on AES.
License: MIT
Keywords: development

su.aes
======

A simple encrypt/decrypt lib based on AES.

Dependencies
~~~~~~~~~~~~

-  Python 3.6 or later

Install
~~~~~~~

.. code:: bash

    $ pip3 install su.aes

Usage
~~~~~

.. code:: python

    from su.aes import encrypt, decrypt

    input_text = "nihao"
    secret_key = "my_sec_key"

    encrypted = encrypt(secret_key, input_text)
    decrypted = decrypt(secret_key, encrypted)

    assert decrypted == input_text

Console
~~~~~~~

.. code:: bash

    # test for input string
    $ su-aes INPUT_STR -t -p

    # file test
    $ su-aes INPUT_FILE_PATH -f -t -o OUTPUT_FILE_PATH