# 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 u-copsapi
```
# Import
```python
from copspy import get_profile
from copspy.errors import apierror # For error handling
```
# Get user(s):
```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")
# Getting multiple users
You can provide multiple usernames or ids.As long as you separate them with a `,` Such as:
get_profile.get_player_by_ign("usernme1, username2")
# or
get_profile.get_player_by_id("1234, 5678")
```
# Get server status:
```python
from copspy import get_server_status
# Get all servers
get_server_status.get_all()
```
# 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": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "cops, api, wrapper, apiwrapper, python, c-ops",
"author": "Kitsune",
"author_email": "kitsune@yokaigroup.gg",
"download_url": "https://files.pythonhosted.org/packages/14/cd/62ba7d7855b95e2a2da8a970d604d6b02254bb7ce4cfa14e87c952c5e61f/u_copsapi-0.2.3.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 u-copsapi\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# Get user(s):\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# Getting multiple users\r\nYou can provide multiple usernames or ids.As long as you separate them with a `,` Such as: \r\n\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\r\n\r\n# Get server status:\r\n\r\n```python\r\nfrom copspy import get_server_status\r\n# Get all servers\r\nget_server_status.get_all()\r\n\r\n```\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.2.3",
"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": "96baaa8fef120a81317f88abd3e6f13ff84e025e605c66be6969ee07c60d6ca3",
"md5": "a8275f34ee51e3451c52fffb55c0d515",
"sha256": "290f0985fe10f049f7f037b49f4b3b20a33788f2cdb4572958ca90541007355a"
},
"downloads": -1,
"filename": "u_copsapi-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a8275f34ee51e3451c52fffb55c0d515",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4508,
"upload_time": "2024-06-17T09:48:57",
"upload_time_iso_8601": "2024-06-17T09:48:57.097968Z",
"url": "https://files.pythonhosted.org/packages/96/ba/aa8fef120a81317f88abd3e6f13ff84e025e605c66be6969ee07c60d6ca3/u_copsapi-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "14cd62ba7d7855b95e2a2da8a970d604d6b02254bb7ce4cfa14e87c952c5e61f",
"md5": "6be9f1e10ed469bd5f6db06619f38203",
"sha256": "2bdd4c147a1441a7f64b9382dd7c2737199913fabfc06b80a81749ee2a002fa1"
},
"downloads": -1,
"filename": "u_copsapi-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "6be9f1e10ed469bd5f6db06619f38203",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3671,
"upload_time": "2024-06-17T09:48:58",
"upload_time_iso_8601": "2024-06-17T09:48:58.176595Z",
"url": "https://files.pythonhosted.org/packages/14/cd/62ba7d7855b95e2a2da8a970d604d6b02254bb7ce4cfa14e87c952c5e61f/u_copsapi-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-17 09:48:58",
"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"
}