semvec/pypi-packages huggingface dataset:
pystatsd 0.1.10
pystatsd is a client for Etsy's statsd server, a front end/proxy for the Graphite stats collection and graphing server.
License: BSD

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

**pystatsd** is a client and server implementation of Etsy's brilliant statsd
server, a front end/proxy for the Graphite stats collection and graphing server.

* Graphite
    - http://graphite.wikidot.com
* Statsd
    - code: https://github.com/etsy/statsd
    - blog post: http://codeascraft.etsy.com/2011/02/15/measure-anything-measure-everything/

**pystatsd** has [been tested on](http://travis-ci.org/sivy/py-statsd) python 2.5, 2.6, and 2.7.

Status
-------------

Reviewing and merging pull requests, bringing stuff up to date, now with tests!

[![Build Status](https://secure.travis-ci.org/sivy/py-statsd.png?branch=master)](http://travis-ci.org/sivy/py-statsd)



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

See statsd_test for sample usage:

    from pystatsd import Client, Server

    srvr = Server(debug=True)
    srvr.serve()

    sc = Client('example.org',8125)

    sc.timing('python_test.time',500)
    sc.increment('python_test.inc_int')
    sc.decrement('python_test.decr_int')
    sc.gauge('python_test.gauge', 42)


Building a Debian Package
-------------

To build a debian package, run `dpkg-buildpackage -rfakeroot`

Upstart init Script
-------------
Upstart is the daemon management system for Ubuntu.

A basic upstart script has been included for the pystatd server. It's located
under init/, and will be installed to /usr/share/doc if you build/install a
.deb file. The upstart script should be copied to /etc/init/pystatd.conf and
will read configuration variables from /etc/default/pystatd. By default the
pystatd daemon runs as user 'nobody' which is a good thing from a security
perspective.

Troubleshooting
-------------

You can see the raw values received by pystatsd by packet sniffing:

    $ sudo ngrep -qd any . udp dst port 8125

You can see the raw values dispatched to carbon by packet sniffing:

    $ sudo ngrep -qd any stats tcp dst port 2003
sunny 0.0.4
Minimalistic interface to Solr.
License: BSD
Keywords: solr search

Sunny
=====

This is a very simple Solr interface for Python.

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

```bash
$ pip install sunny
```

Usage
-----

Create your Solr connection (actually a pool of connections) and then
pass query parameters using simple dictionaries.  The raw Solr result
is returned as a Python dictionary.

```python
>>> import sunny
>>> solr = sunny.Solr('http://localhost:8080/solr')
>>> solr.query({'q': 'office',
...             'facet': 'on',
...             'facet.field': ['network', 'runtime']})
{u'responseHeader': {u'status': 0, u'QTime': ...
```

Parameters
----------

Solr parameters are passed as dictionaries where every value may be
either a string or a list of strings.

``wt=json`` is passed with every request no matter what, because JSON
is easy to convert to Python objects.

Example:

```python
>>> import sunny
>>> solr = sunny.Solr('http://localhost:8080/solr')
>>> solr.query({'q': 'office',
...             'facet': 'on',
...             'facet.field': ['network', 'runtime']})
{u'responseHeader': {u'status': 0, u'QTime': ...
```

The above is equivalent to this query string:
``?wt=json&q=office&facet=on&facet.field=network&facet.field=runtime``

If the ``orderedmultidict`` package is installed, you may use
``omdict`` instances instead of dictionaries.

License
-------

BSD