---------
Poser Box helps starting and stopping a sandboxed Poser instance
from within a Python process. The Poser instance will choose a free port on
localhost.
It is primarily expected to be used in tests.
A typical use of a Poser Box:
```python
import requests
from poserbox import PoserBox
box = PoserBox(scenes_file="test.yaml", proxy="http://example.com")
box.record()
real = requests.get("http://localhost:%s" % box.port)
box.stop()
box.play()
fake = requests.get("http://localhost:%s" % box.port)
box.stop()
assert real.content == fake.content
```
Nose
----
Poser Box comes with a Nose plugin which is automatically installed.
If used as a plugin, port of the running instance will be exported
in environment variable `POSERBOX_PORT`. This name can be overridden
in settings.
The plugin exposes several configuration options. To see them, run:
nosetests --help
The options you are interested in start with `--poserbox-`.
Installation
------------
Get it from PyPi:
pip install poserbox
Get it from GitHub:
pip install https://github.com/ziadsawalha/poserbox.git
Authors
=======
Ziad Sawalha
Thanks
------
PoserBox is based on mongobox by Roman Kalyakin.
For a list of contributors see `AUTHORS.md`.
Metadata
Release files for poserbox 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poserbox-0.0.1.tar.gz | 4.4 kB | Without provenance | Details for poserbox-0.0.1.tar.gz |
Release files / poserbox-0.0.1.tar.gz
| Download URL | poserbox-0.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe94084d1b200149271882bae02906ffe984cf61f33f3c2232d565bb9a910acb
|
|
BLAKE2b-256 checksum How to use checksums |
7071bf0ab0407c0e6cd43949d4a6b81770ef785906a196ab29d45c5890944543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for poserbox 0.0.1
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.