Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

This is how you'd Bench a Grape!

Installation

$ pip install -r requirements.txt

$ python setup.py install

package installation on a linux machine (in virtualenv) for running the benchmark

mkdir benchgrape
cd benchgrape
virtualenv -p python3 benchgrape
source benchgrape/bin/activate
cd benchgrape
pip install --upgrade virtualenv
pip install benchgrape
benchgrape --help

Development

This project includes a number of helpers in the Makefile to streamline common development tasks.

Revert an installed package to continue development

$ python setup.py develop

Environment Setup

The following demonstrates setting up and working with a development environment:

### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run benchgrape cli application

$ benchgrape --help


### run pytest / coverage

$ make test

Releasing to PyPi

Before releasing to PyPi, you must configure your login credentials:

~/.pypirc:

[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORD

Then use the included helper function via the Makefile:

$ make dist

$ make dist-upload

Deployments

Docker

Included is a basic Dockerfile for building and distributing Bench Grape, and can be built with the included make helper:

$ make docker

$ docker run -it benchgrape --help

Examples

Test Websocket Stability

connect 10 websockets to staging.chatgrape.com and record 1 hour activity benchgrape websocket test -n 10 -t 3600 --url https://staging.chatgrape.com --username chat@grape.com --password 'quote-if-special-chars'

Load Test data for Benchmark

Test data can be exported on the grape server. benchgrape test-data load localhost.json

Metadata

Release files for benchgrape 0.0.13.dev20190410165910

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

Source distribution (sdist)

Source distribution for benchgrape 0.0.13.dev20190410165910
File Size Uploaded Provenance Actions
benchgrape-0.0.13.dev20190410165910.tar.gz 16.8 kB Without provenance Details for benchgrape-0.0.13.dev20190410165910.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for benchgrape 0.0.13.dev20190410165910
File Interpreter ABI Platform Actions
benchgrape-0.0.13.dev20190410165910-py3-none-any.whl Python 3 none any Details for benchgrape-0.0.13.dev20190410165910-py3-none-any.whl

Total release size: 39.1 kB

Release files / benchgrape-0.0.13.dev20190410165910.tar.gz

Download URL benchgrape-0.0.13.dev20190410165910.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d696b958f9f51f7b084afc0bd27d28e14d1b8804997b8f51bdf6b3b8b35e1ee0
BLAKE2b-256 checksum
How to use checksums
7dcf09a4462b81b13be2150703aafd3517e04c179dbb899b6c03a869be5bdd68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / benchgrape-0.0.13.dev20190410165910-py3-none-any.whl

Download URL benchgrape-0.0.13.dev20190410165910-py3-none-any.whl
Size 22.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95e9c0f3c81bbceb5980345cf59cfad918de7f1a467abe0fb9bf7ce952f9f60d
BLAKE2b-256 checksum
How to use checksums
ffcc9a80a2f4c01828a72b044f50b083d1236e5e324d42ebb7e36561607a9b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Security for benchgrape 0.0.13.dev20190410165910

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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