Venmo API
Disclaimer: This is an individual effort and is not PayPal/Venmo sponsored or maintained.
Introduction
This is a wrapper for the Venmo API. This library provides a Python interface for the Venmo API. It's compatible with Python versions 3.6+.
Installing
You can install or upgrade venmo-api with:
$ pip3 install venmo-api --upgrade
Or you can install it from the source:
$ git clone https://github.com/mmohades/Venmo.git --recursive
$ cd Venmo
$ python3 setup.py install
Getting Started
Usage
In short, you can send money, request for money, get a user's public transactions, get a user's public profile info, etc. The following is an example of initializing and working with it.
from venmo_api import Client
# Get your access token. You will need to complete the 2FA process
access_token = Client.get_access_token(username='myemail@random.com',
password='your password')
venmo = Client(access_token=access_token)
# Search for users. You get 50 results per page.
users = venmo.user.search_for_users(query="Peter",
page=2)
for user in users:
print(user.username)
# Or, you can pass a callback to make it multi-threaded
def callback(users):
for user in users:
print(user.username)
venmo.user.search_for_users(query="peter",
callback=callback,
page=2,
count=10)
Keep this in mind that your access token never expires! You will need to revoke it by yoursef.
venmo.log_out("Bearer a40fsdfhsfhdsfjhdkgljsdglkdsfj3j3i4349t34j7d")
# Request money
venmo.payment.request_money(32.5, "house expenses", "1122334455667")
# Send money
venmo.payment.send_money(13.68, "thanks for the 🍔", "1122334455667")
Getting a user's transactions (public, friends and privates that happen between your account and user_id account)
def callback(transactions_list):
for transaction in transactions_list:
print(transaction)
# callback is optional. Max number of transactions per request is 50.
venmo_api.user.get_user_transactions(user_id='0000000000000',
callback=callback)
Documentation
venmo-api's documentation lives at readthedocs.io.
Contributing
Contributions of all sizes are welcome. You can help with the wrapper documentation located in /docs. You can also help by reporting bugs. You can add more routes to both Venmo Unofficial API Documentation and the venmo-api wrapper.
Venmo Unofficial API Documentation
You can find and contribute to the Venmo Unofficial API Documentation.
Metadata
Release files for venmo-api 0.3.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 |
|---|---|---|---|---|
| venmo-api-0.3.1.tar.gz | 31.6 kB | Without provenance | Details for venmo-api-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| venmo_api-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for venmo_api-0.3.1-py3-none-any.whl |
Total release size: 67.3 kB
Release files / venmo-api-0.3.1.tar.gz
| Download URL | venmo-api-0.3.1.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be65f2da6416773ccb7dde33bf3dc54fdf1cf9fad26b74a45c1302b4bee6a5cc
|
|
BLAKE2b-256 checksum How to use checksums |
c7ecc4c0cda3bcde0a0f19b77162217783aee15b97607cacbeaf4d8d5d95cc7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Release files / venmo_api-0.3.1-py3-none-any.whl
| Download URL | venmo_api-0.3.1-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c94f3dfdb87bfc235b5df14a19312e676313f554950b1b5e3845c687465b2562
|
|
BLAKE2b-256 checksum How to use checksums |
0ec552d441c5423008191c8108ae4a0c57272a6e0e2f99d764da62dc5ad3f588
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
|
Security for venmo-api 0.3.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.