battlemetrics


Namebattlemetrics JSON
Version 1.0.6 PyPI version JSON
download
home_page
SummaryBattlemetrics API wrapper.
upload_time2024-02-25 13:29:39
maintainer
docs_urlNone
author
requires_python>=3.6
license
keywords battlemetrics battlemetricsapi api gaming
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Battlemetrics API Wrapper

This repository allows users to quickly and easily pull data from the Battlemetrics API. Removing a lot of the guesswork when reading the API.

## Alternatives

### Javascript
For the javascript equivalent, visit this repository: https://github.com/cubiquitous/battlemetrics-js

# Disclaimer
Please note that I am an individual member of the community and not affiliated with Battlemetrics. The resources provided here are developed to facilitate the usage of the Battlemetrics API but come with no official endorsement or sponsorship from Battlemetrics.

It's important to understand that any actions you take using these resources are solely your responsibility. I am not liable for any damage or consequences that may occur to your server or account. Please exercise caution and ensure that you follow best practices when using the API.

## Getting Started

To begin using the Battlemetrics API, make sure you have RCON access and an API token. If you don't have an API token yet, you can obtain one by visiting the [Battlemetrics developers page](https://www.battlemetrics.com/developers).

## Installation

1. Clone or Install this repo:

   Clone this repository
   ```bash
   git clone https://github.com/Gnomeslayer/battlemetrics.git
   ```
   Pip install
   ```bash
   pip install battlemetrics
   ```

2. Install the required dependencies

   or you can do:
   ```bash
   pip install -r requirements.txt
   ```

3. Import the `Battlemetrics` class into your project.
   ```bash
   from battlemetrics import Battlemetrics
   ```

## Usage
Refer to example file for examples.
Here's an example of how to use the Battlemetrics API wrapper:
```bash
# Instantiate the API wrapper with your token
bmapi = battlemetrics("Your token here")

# Retrieve player information
player = asyncio.run(bmapi.player.search(12345))

# Print the player information
print(player)
```
Make sure to replace `"Your API token here"` with your actual API token obtained from the Battlemetrics developers page.


## Resources
For more details on the Battlemetrics API and its capabilities, refer to the official [Battlemetrics API](https://www.battlemetrics.com/developers/documentation).

## Contributing
If you find any issues or have suggestions for improvement, please feel free to submit a pull request or open an issue in the [issue tracker](https://github.com/Gnomeslayer/battlemetrics/issues). I welcome contributions from the community!

## Contact
You can contact me on Discord, simply add me: gnomeslayer
or, you can join the official [Battlemetrics discord](https://discord.gg/xWa3UNG4yh) and @gnomeslayer there.


## Suport
This repository will ALWAYS be free and hopefully regularly updated, but if you want to support me, you can do so [Here](https://ko-fi.com/gnomeslayer)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "battlemetrics",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "battlemetrics,battlemetricsapi,api,gaming",
    "author": "",
    "author_email": "Gnomeslayer <declan.otten@live.com.au>",
    "download_url": "https://files.pythonhosted.org/packages/1f/7d/a311ea62fe5283025f49f05c0026d3eeb3773ca030594bd3a5fd27fc4d02/battlemetrics-1.0.6.tar.gz",
    "platform": null,
    "description": "# Battlemetrics API Wrapper\r\n\r\nThis repository allows users to quickly and easily pull data from the Battlemetrics API. Removing a lot of the guesswork when reading the API.\r\n\r\n## Alternatives\r\n\r\n### Javascript\r\nFor the javascript equivalent, visit this repository: https://github.com/cubiquitous/battlemetrics-js\r\n\r\n# Disclaimer\r\nPlease note that I am an individual member of the community and not affiliated with Battlemetrics. The resources provided here are developed to facilitate the usage of the Battlemetrics API but come with no official endorsement or sponsorship from Battlemetrics.\r\n\r\nIt's important to understand that any actions you take using these resources are solely your responsibility. I am not liable for any damage or consequences that may occur to your server or account. Please exercise caution and ensure that you follow best practices when using the API.\r\n\r\n## Getting Started\r\n\r\nTo begin using the Battlemetrics API, make sure you have RCON access and an API token. If you don't have an API token yet, you can obtain one by visiting the [Battlemetrics developers page](https://www.battlemetrics.com/developers).\r\n\r\n## Installation\r\n\r\n1. Clone or Install this repo:\r\n\r\n   Clone this repository\r\n   ```bash\r\n   git clone https://github.com/Gnomeslayer/battlemetrics.git\r\n   ```\r\n   Pip install\r\n   ```bash\r\n   pip install battlemetrics\r\n   ```\r\n\r\n2. Install the required dependencies\r\n\r\n   or you can do:\r\n   ```bash\r\n   pip install -r requirements.txt\r\n   ```\r\n\r\n3. Import the `Battlemetrics` class into your project.\r\n   ```bash\r\n   from battlemetrics import Battlemetrics\r\n   ```\r\n\r\n## Usage\r\nRefer to example file for examples.\r\nHere's an example of how to use the Battlemetrics API wrapper:\r\n```bash\r\n# Instantiate the API wrapper with your token\r\nbmapi = battlemetrics(\"Your token here\")\r\n\r\n# Retrieve player information\r\nplayer = asyncio.run(bmapi.player.search(12345))\r\n\r\n# Print the player information\r\nprint(player)\r\n```\r\nMake sure to replace `\"Your API token here\"` with your actual API token obtained from the Battlemetrics developers page.\r\n\r\n\r\n## Resources\r\nFor more details on the Battlemetrics API and its capabilities, refer to the official [Battlemetrics API](https://www.battlemetrics.com/developers/documentation).\r\n\r\n## Contributing\r\nIf you find any issues or have suggestions for improvement, please feel free to submit a pull request or open an issue in the [issue tracker](https://github.com/Gnomeslayer/battlemetrics/issues). I welcome contributions from the community!\r\n\r\n## Contact\r\nYou can contact me on Discord, simply add me: gnomeslayer\r\nor, you can join the official [Battlemetrics discord](https://discord.gg/xWa3UNG4yh) and @gnomeslayer there.\r\n\r\n\r\n## Suport\r\nThis repository will ALWAYS be free and hopefully regularly updated, but if you want to support me, you can do so [Here](https://ko-fi.com/gnomeslayer)\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Battlemetrics API wrapper.",
    "version": "1.0.6",
    "project_urls": {
        "Homepage": "https://github.com/Gnomeslayer/battlemetrics"
    },
    "split_keywords": [
        "battlemetrics",
        "battlemetricsapi",
        "api",
        "gaming"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0ef455a3a0c87fc4296d4a49abed528c20e00c7ffb48fc989a97a5f3d58d767",
                "md5": "59e0ccf7f2f9dac1e9fb474f99d790b7",
                "sha256": "ca80d9d8f5ea6ef405a49ea3270aecd3600952e2e562fc748055e22c4b14751e"
            },
            "downloads": -1,
            "filename": "battlemetrics-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "59e0ccf7f2f9dac1e9fb474f99d790b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 27405,
            "upload_time": "2024-02-25T13:29:38",
            "upload_time_iso_8601": "2024-02-25T13:29:38.161035Z",
            "url": "https://files.pythonhosted.org/packages/d0/ef/455a3a0c87fc4296d4a49abed528c20e00c7ffb48fc989a97a5f3d58d767/battlemetrics-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f7da311ea62fe5283025f49f05c0026d3eeb3773ca030594bd3a5fd27fc4d02",
                "md5": "10a58d3e3cd4e4a3bbaa5e2c4dfb8a44",
                "sha256": "9e1003ba613283ab1c18a0a99316293880a7f33ec8bc43846ca0aeba508a9719"
            },
            "downloads": -1,
            "filename": "battlemetrics-1.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "10a58d3e3cd4e4a3bbaa5e2c4dfb8a44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 22228,
            "upload_time": "2024-02-25T13:29:39",
            "upload_time_iso_8601": "2024-02-25T13:29:39.863476Z",
            "url": "https://files.pythonhosted.org/packages/1f/7d/a311ea62fe5283025f49f05c0026d3eeb3773ca030594bd3a5fd27fc4d02/battlemetrics-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-25 13:29:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Gnomeslayer",
    "github_project": "battlemetrics",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "battlemetrics"
}
        
Elapsed time: 0.18926s