A fan made python API wrapper for the c-ops public api
Project description
cops.py
cops.py 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:
python -m pip install copspy
Import
from copspy import get_profile
from copspy.errors import apierror # For error handling
Get user(s):
# 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:
from copspy import get_server_status
# Get all servers
get_server_status.get_all()
Developed by:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file copspy-0.2.tar.gz.
File metadata
- Download URL: copspy-0.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75d84f93110e9f6e33c6371d9ed5f01b862b837c232bcf3a7471f0482ac3072
|
|
| MD5 |
7ab91eee0d2d18afb864d94a00c4ce26
|
|
| BLAKE2b-256 |
d9be57d43fa6fb8136d2f427db45a0ddc28c3207d387a285f019cc6dd907c73c
|
File details
Details for the file copspy-0.2-py3-none-any.whl.
File metadata
- Download URL: copspy-0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
399b46b612f306dae1b6a606ebc77eca2185433196bec7cad37c94674b25ac7b
|
|
| MD5 |
59aa6eb4d3d8947b3f757832f466c115
|
|
| BLAKE2b-256 |
c6a4efaae88369eecf22d71a3e5426237a3635a9ca45c5c20c1bf9196522659a
|