Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
.. image:: https://readthedocs.org/projects/python-wepay/badge/?version=latest :target: https://readthedocs.org/projects/python-wepay/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/python-wepay.svg :target: https://pypi.python.org/pypi/python-wepay/ :alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/python-wepay.svg :target: https://pypi.python.org/pypi/python-wepay/ :alt: Number of PyPI downloads
.. image:: https://landscape.io/github/lehins/python-wepay/master/landscape.png :target: https://landscape.io/github/lehins/python-wepay/master :alt: Code Health
.. image:: https://img.shields.io/coveralls/lehins/python-wepay.svg :target: https://coveralls.io/r/lehins/python-wepay :alt: Tests Coverage
.. image:: https://travis-ci.org/lehins/python-wepay.svg?branch=master
:target: https://travis-ci.org/lehins/python-wepay
:alt: Travis-CI
.. code-block:: python
>>> api = WePay(production=False, access_token='STAGE_243...')
>>> response = api.account.create("name", "description", type='nonprofit')
>>> account_id = response['account_id']
>>> callback_uri = "https://example.com/ipn/account/%s" % account_id
>>> response = api.account.modify(account_id, callback_uri=callback_uri)
>>> api.preapproval.create("short description", "daily", amount=45.5, account_id=account_id)
{'preapproval_id': 619202, 'preapproval_uri': 'https://stage.wepay.com/api/preapproval/619202'}
batch_mode=True
to
a call, ex:.. code-block:: python
>>> call1 = api.checkout.create(1234, short_description, type, amount, batch_mode=True)
>>> call2 = api.withdrawal.find(1235, sort_order='ASC', access_token='access_token_for_other_account', batch_mode=True)
>>> response = api.batch.create(client_id, client_secret, [call1, call2])
This package started as a part of Django WePay Application <https://github.com/lehins/django-wepay>
, but I soon realized it could be
useful to other developers in Python community that do not use Django <https://djangoproject.com>
. Originally it meant to be an extension of an
official Python WePay SDK <https://github.com/wepay/Python-SDK>
, but instead
it became a replacement. This package is also listed as a third party Python SDK on WePay <https://www.wepay.com/developer/resources/sdks>
.
Production.
production <https://wepay.com>
_ site or
it's development <https://stage.wepay.com>
_ clone.six <https://pypi.python.org/pypi/six>
_.requests <http://docs.python-requests.org/en/latest/>
_ (optional):mock <https://pypi.python.org/pypi/mock>
_ (optional, for tests only)::
pip install python-wepay
http://python-wepay.readthedocs.org/en/latest/index.html
MIT licensed. See the bundled LICENSE <https://github.com/lehins/python-wepay/blob/master/LICENSE>
_ file for more details.
added /account/membership/
calls.
added /user/mfa/
calls.
New API version 2015-09-09 changes are reflected in this SDK version:
/withrawal/create
is deprecated.New API version 2015-08-15 changes are reflected in this SDK version:
/account/create
now accepts both old and new style params.removed deprecated call /user/resend_confirmation
.
/accout/create
and /account/modify
now accept country_options
and
fee_schedule_slot
params
added restricted credit_card/transfer
call.
user.resend_confirmation
call to user.send_confirmation
.Python WePay SDK <https://github.com/wepay/Python-SDK>
_.WePayHTTPError
, which is a base exception for both WePayClientError
and WePayServerError
cached_property
decorator.WePayClientError
and WePayServerError
.timeout
can be specified on per call basis.Python 3 compatible
Calls are made using requests <http://docs.python-requests.org/en/latest/>
_
library by default (if installed), falls back to urllib <https://docs.python.org/3/library/urllib.html#module-urllib>
_ if requests
are not installed or if WePay
is initialized with
use_requests=False
.
WePayConnectionError
is raised
in case there is a problem connecting to WePay server, ex. timeout.
Addition of a full test suit.
Minor:
/credit_card/create
.silent
mode is more flexible.SubscriptionPlan
and SubscriptionCharge
to their own modules.WePayWarning
over to wepay.exceptions
module.New API version 2014-01-08 changes are reflected in this SDK version:
/user/register
and user/resend_confirmation
calls./account/get_update_uri
and /account/get_reserve_details
/account/add_bank
, /account/balance
, /account/get_tax
and /account/set_tax
calls.restructured SDK in such a way that all API objects are separate classes, so
as an example, if we have a WePay instance api = WePay()
and we want to
make a /account/find
call, it will look like this api.account.find()
instead of api.account_find()
(notice . instead of _), although in
this version both are equivalent, latter one is depricated and will be removed
in version 1.3. Despite these changes lookup calls will be the same, ex.
api.account(12345)
.
Added flexibility to use different API version per call basis. So it is now
possible to make a depricated call like this: api.account.balance(1234, api_version='2011-01-15')
added batch_reference_id
keyword argument to each call that accepts
batch_mode
Added required arguments to /credit_card/create
call:
Added subscription calls:
/subscription_plan
/subscription
/subscription_charge
Few bug and spelling fixes.
FAQs
Python SDK for WePay API (third party).
We found that python-wepay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.