Skip to main content

Welcome to stati-python-net’s documentation!

stati-python-net is a python client with HTTP & UDP & TCP/IP transports for GottWall metrics aggregation platform

https://secure.travis-ci.org/GottWall/stati-python-net.png

INSTALLATION

To use gottwall use pip or easy_install:

pip install stati-net

or:

easy_install stati-net

USAGE

HTTPClient

# HTTPClient
from stati_net import HTTPClient

private_key = "gottwall_privatekey"
public_key = "project_public_key"
project = "test_gottwall_project"

host = "http://127.0.0.1:8890"

cli = HTTPClient(private_key=private_key,
                 public_key=public_key,
                 project=project,
                 host=host,
                 prefix=None)

cli.incr(name="orders", value=2, filters={"status": ["Completed", "Waiting"]})

TCP/IP Client

# TCP/IP Client
from stati_net import TCPIPClient

private_key = "gottwall_privatekey"
public_key = "project_public_key"
project = "test_gottwall_project"
host = "127.0.0.1"
port = 8097
client = TCPIPClient(project=project,
                     private_key=private_key,
                     public_key=public_key,
                     host=host, port=port,
                     auth_delimiter="--stream-auth--", #optional
                     chunk_delimiter="--chunk--") #optional

cli.incr(name="orders", value=2, filters={"status": ["Completed", "Waiting"]})

UDP Client

# UDP client
from stati_net import UDPClient

private_key = "gottwall_privatekey"
public_key = "project_public_key"
project = "test_gottwall_project"
host = "127.0.0.1"
port = 8097
client = UDPClient(project=project,
                   private_key=private_key,
                   public_key=public_key,
                   host=host, port=port,
                   auth_delimiter="--stream-auth--", #optional
                   chunk_delimiter="--chunk--", #optional
                   max_packet_size=1024) #optional

cli.incr(name="orders", value=2, filters={"status": ["Completed", "Waiting"]})

CONTRIBUTE

We need you help.

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.

  2. Fork the repository on Github to start making your changes to the develop branch (or branch off of it).

  3. Write a test which shows that the bug was fixed or that the feature works as expected.

  4. Send a pull request and bug the maintainer until it gets merged and published.

Release files for stati-net 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stati-net 0.0.8
File Size Uploaded
stati-net-0.0.8.tar.gz 6.4 kB Details

Release files / stati-net-0.0.8.tar.gz

Download URL stati-net-0.0.8.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
33869c45b2f03132d9b316c8f9b156becf42a6f04d5e354a4354e89249a77034
BLAKE2b-256 checksum
How to use checksums
811b7234ceaf8c48dd37da8d9ba177a1a5e4a97dc5762d5ea8780c34b006bc63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page