This project has been archived by its maintainers, and is no longer receiving any updates.
pyaddepar
Some utility code for interacting with addepar. For more information on addepar please check out https://addepar.com/.
Installing pyaddepar
Install with pip
pip install pyaddepar
AddeparRequest
AddeparRequest is a class hiding the management of your key(s), the pagination of requests and conversion of your results to standard pandas containers.
import pandas as pd
from pyaddepar.addeparrequest import AddeparRequest
if __name__ == '__main__':
r = AddeparRequest(key=..., secret=..., id=..., company=...)
today = pd.Timestamp("today")
for key, entity in r.options:
expiry = pd.Timestamp(entity["expiration_date"])
if expiry >= today:
print(expiry)
print(entity)
print(entity["option_type"])
print(entity["node_strike_price"])
print((expiry-today).days/365.0)
Settings.cfg
We recommend to define a configuration file (*.cfg) containing
ADDEPAR = {"key":"A", "secret":"B", "id":"maffay", "company":"maffay" }
Flask-Addepar
A Flask extension that provides integration with Addepar. In particular this flask extension provides management of your AddeparRequests. You can use configuration files such as settings.cfg to follow standard flask practices. The configuration is easy, just fetch the extension:
from flask import Flask
from pyaddepar.flask_addepar import addepar
if __name__ == '__main__':
app = Flask(__name__)
app.config.from_pyfile('config/settings.cfg')
addepar.init_app(app)
with app.app_context():
for key, entity in addepar.request.entities():
print(key)
print(entity)
Metadata
Release files for pyaddepar 0.12.0
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 |
|---|---|---|---|---|
| pyaddepar-0.12.0.tar.gz | 370.5 kB | With provenance | Details for pyaddepar-0.12.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyaddepar-0.12.0-py3-none-any.whl | Python 3 | none | any | Details for pyaddepar-0.12.0-py3-none-any.whl |
Total release size: 375.0 kB
Release files / pyaddepar-0.12.0.tar.gz
| Download URL | pyaddepar-0.12.0.tar.gz |
|---|---|
| Size | 370.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a36a11826ac76e5984fd531abd863915aea565445155bfe2862c949037584278
|
|
BLAKE2b-256 checksum How to use checksums |
738e20929cc263b504ab2ff0ec48d5fa422f0665053594afc1286a5dd51e9b93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 24, 2025.
Transparency logRelease files / pyaddepar-0.12.0-py3-none-any.whl
| Download URL | pyaddepar-0.12.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a01323cd0593669823b8966181c3529d67378207323eb69f76e5c705d9e63a3
|
|
BLAKE2b-256 checksum How to use checksums |
487fa64d486646a44b4d5fb5f6b42c2a557e79c625626ac8355359626155d963
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 24, 2025.
Transparency logSecurity for pyaddepar 0.12.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyaddepar-0.12.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 24, 2025.
Transparency logA 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.