Skip to main content

A Python library for interacting with VoxelWorld API

Project description

VoxelWorldAPI

VoxelWorldAPI is a Python library for interacting with the VoxelWorld API.

Installation

You can install the library using pip:

pip install voxelworldapi

Usage

1.Import the VoxelWorldAPI class from the library:

    from voxelworldapi import VoxelWorldAPI

2.Create an instance of the VoxelWorldAPI class:

    api = VoxelWorldAPI()

3.Get a list of mods:

    mods = api.get_mods()
    print(mods)

4.Get information about a specific mod by ID:

    mod_id = 123
    mod_info = api.get_mod_by_id(mod_id)
    print(mod_info)

5.Download a specific version of a mod by ID and version:

    mod_id = 123
    mod_version = '1.0'
    api.download_mod(mod_id, mod_version)

6.Search for a mod by name:

    mod_name = 'Example Mod'
    search_results = api.search_mod_by_name(mod_name)
    print(search_results)

7.Getting mod data With search_mod_by_name: python search_results[0]["data"]["content"]["id"] With get_mod_by_id: python mod_info["data"]["content"]["id"]

License

MIT License

Copyright 2024 CallFish

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

voxelworldapi-1.34.post20240601.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

voxelworldapi-1.34.post20240601-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file voxelworldapi-1.34.post20240601.tar.gz.

File metadata

  • Download URL: voxelworldapi-1.34.post20240601.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/43.0 requests/2.28.2 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.4 importlib-metadata/7.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.3

File hashes

Hashes for voxelworldapi-1.34.post20240601.tar.gz
Algorithm Hash digest
SHA256 144ff20cf06429c77edd3bd503d16940a42f3fda35471e61131785220e8d42e6
MD5 1655f3dfa658f0c4a572a6c642c6b912
BLAKE2b-256 b2002926b2f253996dbe9a1bf4472a6c6978d43ce3c640d2d42328ea188b4f3e

See more details on using hashes here.

File details

Details for the file voxelworldapi-1.34.post20240601-py3-none-any.whl.

File metadata

  • Download URL: voxelworldapi-1.34.post20240601-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/43.0 requests/2.28.2 requests-toolbelt/1.0.0 urllib3/1.26.18 tqdm/4.66.4 importlib-metadata/7.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.3

File hashes

Hashes for voxelworldapi-1.34.post20240601-py3-none-any.whl
Algorithm Hash digest
SHA256 e7cedb414e1a32922f2749011742d6f957746403af95f94c746d5fe84163e7cd
MD5 e32b47c1aa39a1cd67b1b525291169c3
BLAKE2b-256 c19ecc3dd5098532ffaa234839e27bcea261eb4c1e2f3be356ee358ff39d2466

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