cashpiggy


Namecashpiggy JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/AdonisCodes/CashPiggy-am
SummaryAn API wrapper around the cashpiggy mobile app!
upload_time2024-03-02 13:17:40
maintainer
docs_urlNone
authorAdonisCodes
requires_python>=3.6
license
keywords package automation cashpiggy mobile-app
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ---
## Overview
CashPiggy is a Python package designed to provide easy access to CashPiggy's services through a set of classes and methods. CashPiggy is a platform that allows users to earn rewards by participating in surveys and referrals.

## Installation
You can install the CashPiggy package via pip. Open your terminal and run the following command:
```bash
pip install cashpiggy
```

## Usage

### Importing the Package
You can import the CashPiggy package in your Python script or interactive session using the following import statement:
```python
import cashpiggy
```

### Creating an Account
To create a CashPiggy account, you can use the `register` method of the `CashPiggyAccount` class:
This method returns a `CashPiggyAccount` object representing the newly created account. If the registration fails, it returns `None`.
```python
account = cashpiggy.CashPiggyAccount.register("your_email@example.com")
```

### Claiming Points
You can claim points using the `claim_points` method of the `CashPiggyAccount` class:
Note, that you should only claim 10 points per day, as that is the limit they give as a daily bonus. But you can experiment!
This method takes the number of points to claim as an argument and returns `True` if the claim is successful, otherwise `False`.
```python
success = account.claim_points(100)
```

### Cashout
To cash out your earnings, you can use the `cashout` method of the `CashPiggyAccount` class:
This method takes the cashout method (`CashPiggyCashoutMethod` enum) and the country code as arguments and returns `True` if the cashout is successful, otherwise `False`.
```python
success = account.cashout(cashpiggy.CashPiggyCashoutMethod.PAYPAL_5, "US")
```


### Getting Referrals
You can retrieve information about your referrals using the `get_referrals` method of the `CashPiggyAccount` class:
This method returns a `CashPiggyAccountReferrals` object containing information about your referrals.
```python
referrals = account.get_referrals()
```

### Becoming Referral
You can also become a referral to another account using the `become_referral` method of the `CashPiggyAccount` class:
This method returns a `Boolean` which will be true if it worked, or false if it failed.
```python
success = account.become_referral("other_account_id")
```


### Getting Cashout History
You can retrieve your cashout history using the `get_cashout_history` method of the `CashPiggyAccount` class:
This method returns a list of `CashPiggyCashoutHistory` objects representing your cashout history.
```python
cashout_history = account.get_cashout_history()
```


### Logging
The package uses logging to track the execution flow and any errors encountered during the process. You can configure the logging level and output destination as needed.
Logs are saved in the root folder as cashpiggy.log as it improves debugging for both you & me!


### Contribution
Just make a pull-request with a well described description & I will review to see if the pr is worth it.
If you want your pr to be validated from the get-go, make an issue first so that We can see if the problem/feature will be worth it.
Hope you have fun hacking/coding!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AdonisCodes/CashPiggy-am",
    "name": "cashpiggy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "package,automation,cashpiggy,mobile-app",
    "author": "AdonisCodes",
    "author_email": "business@simonferns.com",
    "download_url": "https://files.pythonhosted.org/packages/a2/da/80a19e1bac5e8e46a3b3ec45296004eca9fc0ac8b421c15906171fb52e26/cashpiggy-0.1.6.tar.gz",
    "platform": null,
    "description": "---\n## Overview\nCashPiggy is a Python package designed to provide easy access to CashPiggy's services through a set of classes and methods. CashPiggy is a platform that allows users to earn rewards by participating in surveys and referrals.\n\n## Installation\nYou can install the CashPiggy package via pip. Open your terminal and run the following command:\n```bash\npip install cashpiggy\n```\n\n## Usage\n\n### Importing the Package\nYou can import the CashPiggy package in your Python script or interactive session using the following import statement:\n```python\nimport cashpiggy\n```\n\n### Creating an Account\nTo create a CashPiggy account, you can use the `register` method of the `CashPiggyAccount` class:\nThis method returns a `CashPiggyAccount` object representing the newly created account. If the registration fails, it returns `None`.\n```python\naccount = cashpiggy.CashPiggyAccount.register(\"your_email@example.com\")\n```\n\n### Claiming Points\nYou can claim points using the `claim_points` method of the `CashPiggyAccount` class:\nNote, that you should only claim 10 points per day, as that is the limit they give as a daily bonus. But you can experiment!\nThis method takes the number of points to claim as an argument and returns `True` if the claim is successful, otherwise `False`.\n```python\nsuccess = account.claim_points(100)\n```\n\n### Cashout\nTo cash out your earnings, you can use the `cashout` method of the `CashPiggyAccount` class:\nThis method takes the cashout method (`CashPiggyCashoutMethod` enum) and the country code as arguments and returns `True` if the cashout is successful, otherwise `False`.\n```python\nsuccess = account.cashout(cashpiggy.CashPiggyCashoutMethod.PAYPAL_5, \"US\")\n```\n\n\n### Getting Referrals\nYou can retrieve information about your referrals using the `get_referrals` method of the `CashPiggyAccount` class:\nThis method returns a `CashPiggyAccountReferrals` object containing information about your referrals.\n```python\nreferrals = account.get_referrals()\n```\n\n### Becoming Referral\nYou can also become a referral to another account using the `become_referral` method of the `CashPiggyAccount` class:\nThis method returns a `Boolean` which will be true if it worked, or false if it failed.\n```python\nsuccess = account.become_referral(\"other_account_id\")\n```\n\n\n### Getting Cashout History\nYou can retrieve your cashout history using the `get_cashout_history` method of the `CashPiggyAccount` class:\nThis method returns a list of `CashPiggyCashoutHistory` objects representing your cashout history.\n```python\ncashout_history = account.get_cashout_history()\n```\n\n\n### Logging\nThe package uses logging to track the execution flow and any errors encountered during the process. You can configure the logging level and output destination as needed.\nLogs are saved in the root folder as cashpiggy.log as it improves debugging for both you & me!\n\n\n### Contribution\nJust make a pull-request with a well described description & I will review to see if the pr is worth it.\nIf you want your pr to be validated from the get-go, make an issue first so that We can see if the problem/feature will be worth it.\nHope you have fun hacking/coding!\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An API wrapper around the cashpiggy mobile app!",
    "version": "0.1.6",
    "project_urls": {
        "Bug Reports": "https://github.com/AdonisCodes/CashPiggy/issues",
        "Documentation": "https://github.com/AdonisCodes/CashPiggy",
        "Homepage": "https://github.com/AdonisCodes/CashPiggy-am",
        "Source Code": "https://github.com/AdonisCodes/CashPiggy"
    },
    "split_keywords": [
        "package",
        "automation",
        "cashpiggy",
        "mobile-app"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "299fd4115ee3e29c9d8d1b072d3da8b39247ee02461edf07486c8b8c93a3f75a",
                "md5": "f5c46010c16e2897c70304eae9b3710f",
                "sha256": "cd8424f264cc00d627c3b5b2cc41d737700933b372bab9d5a815affdf6f2770f"
            },
            "downloads": -1,
            "filename": "cashpiggy-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f5c46010c16e2897c70304eae9b3710f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6526,
            "upload_time": "2024-03-02T13:17:39",
            "upload_time_iso_8601": "2024-03-02T13:17:39.011559Z",
            "url": "https://files.pythonhosted.org/packages/29/9f/d4115ee3e29c9d8d1b072d3da8b39247ee02461edf07486c8b8c93a3f75a/cashpiggy-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2da80a19e1bac5e8e46a3b3ec45296004eca9fc0ac8b421c15906171fb52e26",
                "md5": "65aa7d09b64957fd13eda8163f789ff0",
                "sha256": "90d7e76cac17e0f9a38a282a13ccde47cca8a27bd6954b1d28501e3eeea98700"
            },
            "downloads": -1,
            "filename": "cashpiggy-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "65aa7d09b64957fd13eda8163f789ff0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6281,
            "upload_time": "2024-03-02T13:17:40",
            "upload_time_iso_8601": "2024-03-02T13:17:40.991224Z",
            "url": "https://files.pythonhosted.org/packages/a2/da/80a19e1bac5e8e46a3b3ec45296004eca9fc0ac8b421c15906171fb52e26/cashpiggy-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-02 13:17:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AdonisCodes",
    "github_project": "CashPiggy-am",
    "github_not_found": true,
    "lcname": "cashpiggy"
}
        
Elapsed time: 0.21711s