chatady


Namechatady JSON
Version 1.0.4 PyPI version JSON
download
home_pageNone
SummaryA Python wrapper for the ChatADy API.
upload_time2024-03-24 11:18:54
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseMIT License Copyright (c) 2024 ARCLOOP LIMITED Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords chatady api wrapper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ChatADy Package for Python

The `ChatADy` package is a Python wrapper for the ChatADy API, facilitating easy interaction with ChatADy's services from Python applications. It provides methods to retrieve contents and initiate new chats.

## Installation

To install ChatADy, run this command in your terminal:

```bash
pip install chatady
```

This is the preferred method to install ChatADy, as it will always install the most recent stable release.

If you don't have [pip](https://pip.pypa.io) installed, this [Python installation guide](http://docs.python-guide.org/en/latest/starting/installation/) can guide you through the process.

## Usage

To use the `ChatADy` package, you first need to import the `ChatADy` class from the package and then initialize it with your publisher ID and key.

### Quick Start

Here's a quick example to get you started:

```python
from chatady.chatady import ChatADy

# Initialize the ChatADy client
client = ChatADy('your_publisher_id', 'your_api_key')

# Send in messages
response = client.new_chat('unique_id_identifying_conversation', 'your_entry_message', 'boolean_human_or_bot')
print(response)

# Get ad contents
response = client.get_contents('unique_id_identifying_conversation')
print(response)
```

### Initializing the Client

To interact with the API, you need to create an instance of `ChatADy`:

```python
client = ChatADy('your_publisher_id', 'your_api_key')
```

You can also pass additional options as a dictionary to configure the client further:

```python
options = {'environment': 'production', 'noDelay': True, 'timeout': 1000}
client = ChatADy('your_publisher_id', 'your_api_key', options)
```

### Retrieving Ad Contents

To retrieve contents, use the `get_contents` method with the chat ID. You can also specify options for better targeting:

```python
response = client.get_contents('unique_id_identifying_conversation', {'humansex': 'male', 'botsex': 'female'})
print(response)
```

### Sending in a New Message

To start a new chat, use the `new_chat` method with the chat ID, entry message, and human identifier:

```python
response = client.new_chat('unique_id_identifying_conversation', 'Hello, ChatADy!', 'boolean_human_or_bot')
print(response)
```

## Support

For issues, questions, or contributions, please open an issue on the GitHub repository.

## License

This project is licensed under the MIT License - see the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "chatady",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "chatady, api, wrapper",
    "author": null,
    "author_email": "Jernej Pregelj <contact@chatady.com>",
    "download_url": "https://files.pythonhosted.org/packages/11/69/3376934d98dd277e22b770f1d48bd11e17c398ea968a6ed9a8a0073e4f3f/chatady-1.0.4.tar.gz",
    "platform": null,
    "description": "# ChatADy Package for Python\n\nThe `ChatADy` package is a Python wrapper for the ChatADy API, facilitating easy interaction with ChatADy's services from Python applications. It provides methods to retrieve contents and initiate new chats.\n\n## Installation\n\nTo install ChatADy, run this command in your terminal:\n\n```bash\npip install chatady\n```\n\nThis is the preferred method to install ChatADy, as it will always install the most recent stable release.\n\nIf you don't have [pip](https://pip.pypa.io) installed, this [Python installation guide](http://docs.python-guide.org/en/latest/starting/installation/) can guide you through the process.\n\n## Usage\n\nTo use the `ChatADy` package, you first need to import the `ChatADy` class from the package and then initialize it with your publisher ID and key.\n\n### Quick Start\n\nHere's a quick example to get you started:\n\n```python\nfrom chatady.chatady import ChatADy\n\n# Initialize the ChatADy client\nclient = ChatADy('your_publisher_id', 'your_api_key')\n\n# Send in messages\nresponse = client.new_chat('unique_id_identifying_conversation', 'your_entry_message', 'boolean_human_or_bot')\nprint(response)\n\n# Get ad contents\nresponse = client.get_contents('unique_id_identifying_conversation')\nprint(response)\n```\n\n### Initializing the Client\n\nTo interact with the API, you need to create an instance of `ChatADy`:\n\n```python\nclient = ChatADy('your_publisher_id', 'your_api_key')\n```\n\nYou can also pass additional options as a dictionary to configure the client further:\n\n```python\noptions = {'environment': 'production', 'noDelay': True, 'timeout': 1000}\nclient = ChatADy('your_publisher_id', 'your_api_key', options)\n```\n\n### Retrieving Ad Contents\n\nTo retrieve contents, use the `get_contents` method with the chat ID. You can also specify options for better targeting:\n\n```python\nresponse = client.get_contents('unique_id_identifying_conversation', {'humansex': 'male', 'botsex': 'female'})\nprint(response)\n```\n\n### Sending in a New Message\n\nTo start a new chat, use the `new_chat` method with the chat ID, entry message, and human identifier:\n\n```python\nresponse = client.new_chat('unique_id_identifying_conversation', 'Hello, ChatADy!', 'boolean_human_or_bot')\nprint(response)\n```\n\n## Support\n\nFor issues, questions, or contributions, please open an issue on the GitHub repository.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 ARCLOOP LIMITED  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A Python wrapper for the ChatADy API.",
    "version": "1.0.4",
    "project_urls": {
        "Homepage": "https://github.com/ChatADy/chatady-python"
    },
    "split_keywords": [
        "chatady",
        " api",
        " wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90a4df6b156014a2dca741c7b130da36163686bf31dc029255551ccf1f88592b",
                "md5": "39f233673a13f8529cbe741866e9156a",
                "sha256": "4adb77c485b8395322923be62a63b92b932c580219fb8afd54201140c8f39eb5"
            },
            "downloads": -1,
            "filename": "chatady-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "39f233673a13f8529cbe741866e9156a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4840,
            "upload_time": "2024-03-24T11:18:53",
            "upload_time_iso_8601": "2024-03-24T11:18:53.483521Z",
            "url": "https://files.pythonhosted.org/packages/90/a4/df6b156014a2dca741c7b130da36163686bf31dc029255551ccf1f88592b/chatady-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "11693376934d98dd277e22b770f1d48bd11e17c398ea968a6ed9a8a0073e4f3f",
                "md5": "8d83d41aca13a9ebbf7fc687b934f05f",
                "sha256": "53e9ff753217b87202d516527dc4507901e03de1d6453a531c271bd765887fc5"
            },
            "downloads": -1,
            "filename": "chatady-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8d83d41aca13a9ebbf7fc687b934f05f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3877,
            "upload_time": "2024-03-24T11:18:54",
            "upload_time_iso_8601": "2024-03-24T11:18:54.976059Z",
            "url": "https://files.pythonhosted.org/packages/11/69/3376934d98dd277e22b770f1d48bd11e17c398ea968a6ed9a8a0073e4f3f/chatady-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-24 11:18:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ChatADy",
    "github_project": "chatady-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "chatady"
}
        
Elapsed time: 0.44686s