u-copsapi


Nameu-copsapi JSON
Version 0.1 PyPI version JSON
download
home_pagehttps://github.com/Kitsune-San/cops.py
Summarya fan made python API wrapper for the c-ops public api
upload_time2024-03-10 12:48:04
maintainer
docs_urlNone
authorKitsune
requires_python
licenseMIT
keywords cops api wrapper apiwrapper python c-ops
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # copspy
copspy is a python API wrapper for the public version of the Critical Ops API.
This project is not affiliated with c-ops, Critical Force, Critical Force Oy or any related company.
This project is purely made for fun by the community and for the community.

# Install:
```bash
  python -m pip install copspy 
```

# Import
```python
  from copspy import get_profile
  from copspy.errors import apierror # For error handling
```

# Ussage examples:
```python
# Get a player profile:
from copspy import get_profile
get_profile.get_player_by_ign("username here")

get_profile.get_player_by_id("id here")

```
# Returns:
When called, the functions will return in json format. Which you can then use for your projects.

# Adiditonal stuff
You can provide multiple usernames or ids.As long as you separate them with a `,` Such as: 

```python
get_profile.get_player_by_ign("usernme1, username2")

# or
get_profile.get_player_by_id("1234, 5678")
```
# Developed by:
[Kitsune](https://github.com/Kitsune-San)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Kitsune-San/cops.py",
    "name": "u-copsapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "cops,api,wrapper,apiwrapper,python,c-ops",
    "author": "Kitsune",
    "author_email": "kitsune@yokaigroup.gg",
    "download_url": "https://files.pythonhosted.org/packages/ae/89/eddfd807d03bf25faf71d411f3c71622f459647f35b8728904d86ac1ef55/u-copsapi-0.1.tar.gz",
    "platform": null,
    "description": "# copspy\r\ncopspy is a python API wrapper for the public version of the Critical Ops API.\r\nThis project is not affiliated with c-ops, Critical Force, Critical Force Oy or any related company.\r\nThis project is purely made for fun by the community and for the community.\r\n\r\n# Install:\r\n```bash\r\n  python -m pip install copspy \r\n```\r\n\r\n# Import\r\n```python\r\n  from copspy import get_profile\r\n  from copspy.errors import apierror # For error handling\r\n```\r\n\r\n# Ussage examples:\r\n```python\r\n# Get a player profile:\r\nfrom copspy import get_profile\r\nget_profile.get_player_by_ign(\"username here\")\r\n\r\nget_profile.get_player_by_id(\"id here\")\r\n\r\n```\r\n# Returns:\r\nWhen called, the functions will return in json format. Which you can then use for your projects.\r\n\r\n# Adiditonal stuff\r\nYou can provide multiple usernames or ids.As long as you separate them with a `,` Such as: \r\n\r\n```python\r\nget_profile.get_player_by_ign(\"usernme1, username2\")\r\n\r\n# or\r\nget_profile.get_player_by_id(\"1234, 5678\")\r\n```\r\n# Developed by:\r\n[Kitsune](https://github.com/Kitsune-San)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a fan made python API wrapper for the c-ops public api",
    "version": "0.1",
    "project_urls": {
        "Homepage": "https://github.com/Kitsune-San/cops.py"
    },
    "split_keywords": [
        "cops",
        "api",
        "wrapper",
        "apiwrapper",
        "python",
        "c-ops"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae89eddfd807d03bf25faf71d411f3c71622f459647f35b8728904d86ac1ef55",
                "md5": "1cdd86796719b2921a4bbe20cbae7107",
                "sha256": "fa7e2a1bb92be02a4fe3dcc5372902b36cdfc4d17276ef130eea4c5cbda77217"
            },
            "downloads": -1,
            "filename": "u-copsapi-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1cdd86796719b2921a4bbe20cbae7107",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3456,
            "upload_time": "2024-03-10T12:48:04",
            "upload_time_iso_8601": "2024-03-10T12:48:04.535127Z",
            "url": "https://files.pythonhosted.org/packages/ae/89/eddfd807d03bf25faf71d411f3c71622f459647f35b8728904d86ac1ef55/u-copsapi-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-10 12:48:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Kitsune-San",
    "github_project": "cops.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "u-copsapi"
}
        
Elapsed time: 0.21466s