paddle-python / paddle-client Goto Github PK
View Code? Open in Web Editor NEWPython wrapper around the Paddle.com API
Home Page: https://paddle-client.readthedocs.io/en/latest/
License: MIT License
Python wrapper around the Paddle.com API
Home Page: https://paddle-client.readthedocs.io/en/latest/
License: MIT License
Hello,
as documented in https://developer.paddle.com/api-reference/subscription-api/users/listusers and https://developer.paddle.com/reference/platform-parameters/event-statuses , there is also the "deleted" status - useful to retrieve informations about cancelled subscriptions.
At the moment is impossible to call the list_subscription_users()
function with state='deleted'
, because it's not listed in the states
list on line 25 of _subscription_users.py
Can you please add it?
Thank you
Hello, I am from Baidu PaddlePaddle team. I learned from giuhub that you have begun to use PaddlePaddle and we would like to offer you more support including technical help and others. Would you like to join PaddlePaddle community and have fun? If interested, you can conntact me via Wechat, my ID is paddlehelp, or you can contact me via email [email protected]. Looking forward to your reply :)
Looking forward to your reply~
It's not really clear how to create a subscription and let a user approve it. I see there are only update_subscription
and cancel_subscription
. So how can I create a subscription first? A code sample would be appreciated.
there is new API for paddle billing https://developer.paddle.com/api-reference/overview is it possible to add support for that too?
In function create_pay_link
, if vat_number
is set and vat_state
is not, we get an error ValueError('vat_state must be set if vat_number is set')
According to https://developer.paddle.com/api-reference/product-api/pay-links/createpaylink this field is NOT required (some countries don't have states...).
Hi. I realized that there is a bug in client's initial_price existence logic. I would want to create a PR for it but I don't have any access to a Paddle account. I would be happy to contribute if any Paddle account is given for testing, otherwise I'm okay to see that fixed. Thanks for your time.
if main_currency_code == 'USD' and initial_price_usd is None:
raise ValueError('main_currency_code is USD so initial_price_usd must be set') # NOQA: E501
if main_currency_code == 'GBP' and initial_price_gbp is None:
raise ValueError('main_currency_code is USD so initial_price_gbp must be set') # NOQA: E501
if main_currency_code == 'USD' and initial_price_eur is None:
raise ValueError('main_currency_code is USD so initial_price_eur must be set') # NOQA: E501
if main_currency_code == 'USD' and recurring_price_usd is None:
raise ValueError('main_currency_code is USD so recurring_price_usd must be set') # NOQA: E501
if main_currency_code == 'GBP' and recurring_price_gbp is None:
raise ValueError('main_currency_code is USD so recurring_price_gbp must be set') # NOQA: E501
if main_currency_code == 'USD' and recurring_price_eur is None:
raise ValueError('main_currency_code is USD so recurring_price_eur must be set') # NOQA: E501
Clicking on "Show Failing Endpoints" does not show the failing endpoints.
While importing Paddle library from paddle OCR getting an error since we do not have permission to create path in Home directory
on analysis noticed that within common.py the below code snippet is causing the issue. Is there an alternate way to inject the path via a wrapper.
site-packages/paddle/dataset/common.py
HOME = os.path.expanduser('~')
DATA_HOME = os.path.join(HOME, '.cache', 'paddle', 'dataset')
Error Logs as follows
[ERROR] OSError: [Errno 30] Read-only file system: '/home/sbx_user1051' Traceback (most recent call last): File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 843, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed from paddleocr import PaddleOCR File "/ABCD/xyz/paddleocr/__init__.py", line 14, in <module> from .paddleocr import * File "/ABCD/xyz/paddleocr/paddleocr.py", line 21, in <module> import paddle File "/ABCD/xyz/paddle/__init__.py", line 71, in <module> import paddle.dataset # noqa: F401 File "/ABCD/xyz/paddle/dataset/__init__.py", line 18, in <module> import paddle.dataset.mnist # noqa: F401 File "/ABCD/xyz/paddle/dataset/mnist.py", line 23, in <module> import paddle.dataset.common File "/ABCD/xyz/paddle/dataset/common.py", line 50, in <module> must_mkdirs(DATA_HOME) File "/ABCD/xyz/paddle/dataset/common.py", line 43, in must_mkdirs os.makedirs(DATA_HOME) File "/usr/local/lib/python3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "/usr/local/lib/python3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "/usr/local/lib/python3.8/os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "/usr/local/lib/python3.8/os.py", line 223, in makedirs mkdir(name, mode)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.