Giter Club home page Giter Club logo

paddle-client's People

Contributors

agmathew avatar pyepye avatar rejoc avatar wolf-byte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

paddle-client's Issues

Add 'deleted' state in _subscription_users.py

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

HI

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~

Documentation Enhancement

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.

create_plan initial_price check bug

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

Unable to use Paddle Library.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.