Skip to main content

Pennsieve Python Client

Project description

Pennsieve Python client (pennsieve2)

PyPI Latest Release pypi Package Status License Coverage

Python client and command line tool for Pennsieve (pennsieve2).

Prerequisites

In order to use this Python library to upload files to Pennsieve, please follow the instruction on installing and setting up Pennsieve agent, which could be found in the documentation.

Installation

To install, run:

    pip install -U pennsieve2

To install specific previous dev version, run:

    pip install -U pennsieve2==0.1.0.dev2 --extra-index-url https://test.pypi.org/simple

Contributions

To update gRPC python files, execute from the src folder:

    rm src/pennsieve2/protos/agent_pb2*
    cd src
    python3.9 -m grpc_tools.protoc --python_out=. -I. --grpc_python_out=. pennsieve2/protos/agent.proto

Notice, this command does not produce a valid agent_pb2.py file when executed for Python3.10 or formatted by black - it does not use reflection and is reported as error for Flake8.

To create a package and upload it to PyPI, first update the package version in the pennsieve2/init.py, then execute:

    python -m build
    # For testing:
    twine upload -r testpypi dist/*
    # For production:
    twine upload dist/*

Documentation

Client and command line documentation can be found on Pennsieve’s documentation website.

Development

This project uses Poetry to manage dependencies in pyproject.toml. To set up a development environment run

  poetry install

from the root directory to install the projects dependencies. Some IDEs (IntelliJ Idea for example) can create a Poetry Python environment as well.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pennsieve2-0.1.2.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

pennsieve2-0.1.2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file pennsieve2-0.1.2.tar.gz.

File metadata

  • Download URL: pennsieve2-0.1.2.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pennsieve2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3c886dd2c429c63c8e1076bb214dc9b6ab44de19974005b0f98c52833235fa8c
MD5 c2cc61c26e815de08cbcbb109faba2f4
BLAKE2b-256 d95fc9e9e92c8ad796ab5dea68e998c9c77780c16847e193d0d0603d48341c51

See more details on using hashes here.

File details

Details for the file pennsieve2-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pennsieve2-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for pennsieve2-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b4c2ce0606e990470d786b4cb112ccd8bd9a22b94672e9e0ac4348f104b8ca
MD5 621bb927fbde8adee01d75ac692b2a05
BLAKE2b-256 e1ac07666cc901d126700e24dcca8de415e6b9d62fdc65fb479ce427c0c5a55c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page