semvec/pypi-packages huggingface dataset:
gcs-oauth2-boto-env-plugin 0.1.3
Google Storage auth2 plugin with support for passing service key via environment
License: MIT
Keywords: oauth2 gcs s3 boto plugin docker

Google Cloud Storage oAuth2 ENV Plugin
======================================

.. image:: https://img.shields.io/pypi/v/gcs-oauth2-boto-env-plugin.svg
    :target: https://pypi.python.org/pypi/gcs-oauth2-boto-env-plugin

gcs-oauth2-boto-env-plugin is a Python application whose purpose is to behave as an auth plugin for the boto auth plugin framework for use with OAuth 2.0 credentials for the Google Cloud Platform. This plugin is only compatible with service accounts, and it's functionality is essentially a wrapper around `gcs-oauth2-boto-plugin <https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin>`_, with the added capability of passing the private JSON key as an environment variable for easy deployment.

Usage
-----

Call the following program with the content of the JSON private key set as ``GOOGLE_OAUTH2_JSON_PRIVATE_KEY`` environment variable::

    import boto
    import gcs_oauth2_boto_env_plugin

    project_id = 'your-project-id'

    header_values = {"x-goog-project-id": project_id}
    uri = boto.storage_uri('', 'gs')
    for bucket in uri.get_all_buckets(headers=header_values):
        print bucket.name


License
-------

All source code is licensed under the `MIT License <https://raw.githubusercontent.com/rs/eve-auth-jwt/master/LICENSE>`_.
rapid-django 0.0.1a1
Opionated tools for rapid development of enterprise CRUD portals
License: MIT
Keywords: CRUD

Rapid Django
============

A set of opionated tools for rapid development of enterprise CRUD portals.

Rapid Django generates CRUD pages and menus, based on a simple to use
registry of models, forms and views.

How to Use
==========

Add the 'rapid' application to your installed apps, and run a database migration.
Create a 'base.html' template that will be used by the CRUD generator. A minimum
template looks as following:

::
   <DOCTYPE html>
   <html>
   <head>
       <link href="link to bootstrap" rel="stylesheet">
       <script src="link to jquery"></script>
   </head>
   <body>
       {% load rapid_menu %}
       {% menu request %}
       {% block body %}{% endblock %}
       <script src="link to the jquery-form plugin">
   </body>
   </html>

A menu will be generated in a unumbered list (UL) at the "menu" tag, and the
registered data will be placed at the "body" block.

After that, one must register actions. For that, the module "rapid.views" has three helper functions:
"register_model", "register_instance_form", and "register_simple_select".

Use "register_model" for creating default actions for listing, viewing, editing, addin, and optionally
removing objects of a model.

Use "register_instance_form" for creating custom actions where users submit a form, and act upon
instances of a model. The form may not be a ModelForm, but must implement the save() method.

Use "register_simple_select" for enabling the rapid select widget for all generated edit forms
with fields that select the registered model (that is, foreign key, one to one, and one to many
fields, besides reverse relationships).

The module "rapid.permissions" includes helper functions for managing user permissions on the
registered actions. Permmissions may be managed for entire models and for instances (but not
columns yet).
dsrtp 0.2.0
Frontend for decrypting captured SRTP packets.
License: MIT

=====
dsrtp
=====

.. image:: https://travis-ci.org/mayfieldrobotics/dsrtp.svg
   :target: https://travis-ci.org/mayfieldrobotics/dsrtp
    
.. image:: https://img.shields.io/pypi/v/dsrtp.svg
   :target: https://pypi.python.org/pypi/dsrtp

Simple front-end for decrypting captured `SRTP and SRTCP <https://www.ietf.org/rfc/rfc3711.txt>`_ packets using:

- `libsrtp <https://github.com/cisco/libsrtp>`_ and 
- `dpkt <https://github.com/kbandla/dpkt>`_

install
-------

Install devel `libpcap <https://github.com/the-tcpdump-group/libpcap>`_ and `libsrtp <https://github.com/cisco/libsrtp>`_ if you need to, e.g.:

.. code:: bash

   sudo apt-get install libpcap-dev libsrtp0-dev
   
and then:

.. code:: bash

   pip install dsrtp

usage
-----

command
~~~~~~~

To e.g. decrypt captured packets and write then back to a capture file:

.. code:: bash

   dsrtp test/fixtures/av.pcap /tmp/rtp.pcap -ld -k test/fixtures/av_material.hex

If you have a cluttered capture (e.g. multiple SRTP streams) then you can
select e.g. the in-bound stream by ``address:port`` like:

.. code:: bash

   dsrtp test/fixtures/av.pcap /tmp/rtp.pcap -k test/fixtures/av_material.hex -l d -i 192.168.121.234:60401

lib
~~~

To do the same in code:

.. code:: python

   import dsrtp
   
   enc_km = open('test/fixtures/av_material.hex').read()
   km = dsrtp.KeyingMaterial.unpack_hex(enc_km)
   p = dsrtp.SRTPPolicy(ssrc_type=dsrtp.SRTPPolicy.SSRC_ANY_INBOUND, key=km.local)
   
   with dsrtp.SRTP(p) as ctx, \
           open('test/fixtures/av.pcap', 'rb') as srtp_pcap, \
           open('/tmp/rtp.pcap', 'wb') as rtp_pcap:
     pkts = dsrtp.read_packets(srtp_pcap)
     decrypted_pkts = dsrtp.decrypt_packets(ctx, pkts)
     dsrtp.write_packets(rtp_pcap, decrypted_pkts)

dev
---

Create a `venv <https://virtualenv.pypa.io/en/latest/>`_:

.. code:: bash

   mkvirtualenv dsrtp
   pip install Cython

then get it:

.. code:: bash

   git clone git@github.com:mayfieldrobotics/dsrtp.git
   cd dsrtp
   workon dsrtp
   pip install -e .[test]

and test it:

.. code:: bash

   py.test test/ --cov dsrtp --cov-report term-missing --pep8

release
-------

Tests pass:

.. code:: bash

   py.test test/ --cov dsrtp --cov-report term-missing --pep8

so update ``__version__`` in:

- ``dsrtp/__init__.py``

commit and tag it:

.. code:: bash

   git commit -am "release v{version}"
   git tag -a v{version} -m "release v{version}"
   git push --tags

and `travis <https://travis-ci.org/mayfieldrobotics/dsrtp>`_ will publish it to `pypi <https://pypi.python.org/pypi/dsrtp/>`_.