Skip to main content

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:

VyPER

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copspy-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copspy-0.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file copspy-0.2.1.tar.gz.

File metadata

  • Download URL: copspy-0.2.1.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

Hashes for copspy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 64f1582dea1960262c744cab7e3fa46a877d7e771eeb3f5bd9f4251cf29c87b3
MD5 6c0f84d3507c75168c1074501aec915b
BLAKE2b-256 6015472d89dca7388e3b9a24b0f47a809444ab59860ab7bcbdc24c4dec017696

See more details on using hashes here.

File details

Details for the file copspy-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: copspy-0.2.1-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

Hashes for copspy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2459e0d282b6e5274f072a9804fbfba2dac938591951bc5b5ed46ed7ca90084
MD5 cdffd14b57784e6318df1fbf4d386e3d
BLAKE2b-256 b7d6da90c0f11684a6235075585d1db84b912143f2c16f0fb17fb3cdcd04966a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page