semvec/pypi-packages huggingface dataset:
cluster-lensing 0.1.2
Galaxy Cluster and Weak Lensing Tools
License: MIT

cluster-lensing: galaxy cluster halo calculations
======================================================
This package includes tools for calculating a variety of galaxy cluster properties, as well as mass-richness and mass-concentration scaling relations, and weak lensing profiles. These include surface mass density (Sigma) and differential surface mass density (DeltaSigma) for NFW halos, both with and without the effects of cluster miscentering.
For more information, visit http://jesford.github.io/cluster-lensing
GRR-M2Crypto 0.22.6.post2
M2Crypto: A Python crypto and SSL toolkit
License: MIT

M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
DH, EC, HMACs, message digests, symmetric ciphers (including AES); SSL
functionality to implement clients and servers; HTTPS extensions to Python's
httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for web
session management; FTP/TLS client and server; S/MIME; ZServerSSL: A HTTPS
server for Zope and ZSmime: An S/MIME messenger for Zope. M2Crypto can also be
used to provide SSL for Twisted. Smartcards supported through the Engine
interface.

This is a binary wheel distribution release by the GRR team:
https://github.com/google/grr
langcodes-py2 1.2.0
Labels and compares human languages in a standardized way -- Python 2 backport
License: MIT

langcodes is a toolkit for working with and comparing the standardized codes
for languages, such as 'en' for English, 'es' for Spanish, and 'zh-Hant' for
Traditional Chinese. These are BCP 47 language codes, formerly known as ISO
language codes.

langcodes is designed for Python 3, but this version of langcodes,
'langcodes-py2', is a backport to Python 2.7.

The documentation for langcodes lives in its README file, which you can read
on GitHub: https://github.com/LuminosoInsight/langcodes
kinesis-producer 0.2.1
Producer for AWS Kinesis Stream with record aggregation
License: MIT
Keywords: kinesis kafka producer client

================
Kinesis Producer
================

Python producer for AWS Kinesis Stream with record aggregation.

It uses Boto 3 and is tested on Python 2.7 and 3.4/3.5.

* PyPI: https://pypi.python.org/pypi/kinesis_producer
* Code: https://github.com/ludia/kinesis_producer
* |travis|
* |coveralls|

.. |travis| image:: https://travis-ci.org/ludia/kinesis_producer.svg?branch=master
   :target: https://travis-ci.org/ludia/kinesis_producer

.. |coveralls| image:: https://coveralls.io/repos/github/ludia/kinesis_producer/badge.svg?branch=master
   :target: https://coveralls.io/github/ludia/kinesis_producer?branch=master


Install
=======

   pip install 'kinesis_producer < 1'

**Note**: Kinesis Producer use semver: you should always freeze on the major
version since it could mean breaking the API.


Usage
=====

Send records aggregated up to 100KB, 200ms and joined with '\\n':

.. code:: python

   from kinesis_producer import KinesisProducer

   config = dict(
       aws_region='us-east-1',
       buffer_size_limit=100000,
       buffer_time_limit=0.2,
       kinesis_concurrency=1,
       kinesis_max_retries=10,
       record_delimiter='\n',
       stream_name='KINESIS_STREAM_NAME',
       )

   k = KinesisProducer(config=config)

   for record in records:
       k.send(record)

   k.close()
   k.join()


Config
======

:aws_region: AWS region for Kinesis calls (like us-east-1)
:buffer_size_limit:
   Approximative size limit for record aggregation (in bytes)
:buffer_time_limit:
   Approximative time limit for record aggregation (in seconds)
:kinesis_concurrency:
   Set the concurrency level for Kinesis calls. Set to 1 for no
   concurrency. Set to 2 and more to use a thread pool.
:kinesis_max_retries:
   Number of Kinesis put_records call attempt before giving up.
   This number should be between 4 and 10 if you want to handle
   temporary ProvisionedThroughputExceeded errors.
:record_delimiter: Delimiter for record aggregation
:stream_name: Name of the Kinesis Stream


Kinesis retries
---------------

Kinesis calls are retried for ProvisionedThroughputExceeded error
only. Retry use an exponential backoff logic (0.1s, 0.2s, 0.4s, 0.8s,
1.60s, 3.20s, 6.40s, 12.80s, 25.60s, 51.20s, 102.40s...)


Copyright and license
=====================

Released under the MIT license.
cantal_tools 0.2.4
High level cantal tools
License: MIT

Cantal tools
============

High level tools for `cantal`_ metrics collection system.

Documentation: http://cantal-tools.readthedocs.io

Package contains utils for collecting metrics for
WSGI applications, Flask, Redis, Elasticsearch, SQLAlchemy and Django.
See docs for more.

Basic usage:

.. code-block:: python

   import cantal
   from cantal_tools.werkzeug_serving import CantaledWSGIServer

   cantal.start()

   CantaledWSGIServer(
       port=8080,
       ).serve_forever()

.. _cantal: http://cantal-py.readthedocs.io
valve-range-query 1.0.4
Python library for Query of Valve Servers over a range of IPs
License: MIT
Keywords: valve query servers counter strike

Python library for Query of Valve Servers over a range of IPs
=============================================================

To install the library run

::

	pip install valve-range-query


To scan servers in range " <base_ipaddr> . <axlimits> . <aylimits> "

For example scan '172'.'25'.'0-34'.'0.254'

::
	
    from valverangequery import *
    axlimits = [0,35]
    aylimits = [0,255]
    base_ipaddr = "172.25"
    scanner = SourceScanner(timeout = 20.0, axlimits = axlimits, aylimits = aylimits, base_ipaddr="172.25")
    server_list = scanner.scan_servers()


To obtain player info from server having IP <ip>

::
	
    from valverangequery import *
    ip = "172.25.12.121"
    player_query = PlayerQuery(ip)
    player_list  = player_query.player()


----

The respose of **SourceScanner** is a dictionary of list of servers

Each list entry "server_obj" will have following key-value pairs:
	
::

	for server_obj in server_list:
		sample_new_dictionary = {
				'map_name' : server_obj['map'],
				'host' : server_obj['host_ip'],				'num_players' : server_obj['numplayers'],
				'max_players' : server_obj['maxplayers'], 	'server_name' : server_obj['name'],
				'game_name' : server_obj['game'],			'folder' : server_obj['folder'],
				'protocol' : server_obj['protocol'],		'num_bots' : server_obj['bots'],
				'num_humans' : server_obj['numplayers'] - server_obj['bots']
		}

----

The respose of **PlayerQuery** is a dictionary of list of players

Each list entry "player_obj" will have following key-value pairs:
	
::
	
	for player_obj in player_list:
		sample_new_dictionary = {
				'score' : player_obj['score'], 'duration' : int(player_obj['duration'])	, 
				'name'	: player_obj['name']
		}
vebootstrap 0.0.14
Virtualenv bootstrapper
License: MIT

Virtualenv Bootstrapper
========================

When you are about to create a python program that depends on some packages, you may setup virtualenv and install some packages within that virtualenv manually. This module automatically creates an environment and installs packages in it.

Setup
-------------

**Requirements**

* python 2.7, 3.3 or later
* pip
* virtualenv

**Installation**

    $ pip install vebootstrap

Usage
--------------

**Importing Pattern**

Insert following line into head of your script file, and create a `requirements.txt` in same directory as necessary.

    import vebootstrap

Running that script, it creates a virtualenv and modules will be installed automatically.

**Not Importing Pattern**

If you do not want to add a unconcerned line, run following command and then virtualenv will be prepared and activated.

    python -m vebootstrap [script file]

Example
--------------

**Case: you want to create a script using `requests` module. (http request library)**

Create a script file (eg. get\_yahoo.py)

    import vebootstrap # you must write this sentence at the first
    import requests
    print(requests.get('http://yahoo.co.jp').content[:100])

Create a `requirements.txt`

    requests

Run a script

    python get_yahoo.py

At first, virtualenv directory will be created and required packages will be installed.
And you get a first line of html of the Yahoo.

Extra Usage
--------------

**Init virtualenv**

Following command initialize virtualenv directory and install modules.

    python -m vebootstrap.init

**Create a virtualenv bootstrap script**

`vebootstrap` supports creating virtualenv bootstrap script. Run a following command in your scripting directory. The bootstrap script involving `requirements.txt` will be created.

    python -m vebootstrap.create_bootstrap

`--after-install` option allows you to add another process into the bootstrap script. Please see help.

    python -m vebootstrap.create_bootstrap --help
fynd-tornado-alohomora 0.5.0
Fynd Centralized auth system.
License: MIT
Keywords: Fynd Auth Integrator

Fynd Alohomora Package
======================

A python package for Fynd Alohomora connector.
Fynd alohomora is the centralized Authentication system for several applications of Fynd.


Usage
=====
**Import the module

from alohomora import check_if_authenticated

** Use it as a decorator

check_if_authenticated(state='some_state', permission='some_permission')
def some_method()
    """
    Your code
    """
    return something