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.35.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.35.post20240601-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: voxelworldapi-1.35.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.35.post20240601.tar.gz
Algorithm Hash digest
SHA256 5f899c7481efb2868372139635ba97c292f2bce7fc8112d7d7e2fb136837b623
MD5 9d38ed3bfff86c5f3246686c1f0fcf63
BLAKE2b-256 7aaa7b97a2192e77ed5c1afdd9779eeaca2f6b9cd7209c358bd2528d19eb7f7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: voxelworldapi-1.35.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.35.post20240601-py3-none-any.whl
Algorithm Hash digest
SHA256 ea25f5dbb3e8975a7907da0a085abbc391d4e2332c486d28d8f3238e306ee9ac
MD5 5434c14e9c0fc5558b9e0db342de6ceb
BLAKE2b-256 142e3b147f90209a97f7971a1d5bcb8de6e5db10f4d02eadad16e00f301c1864

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