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.0.20240531.tar.gz (2.5 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.0.20240531-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file voxelworldapi-1.0.20240531.tar.gz.

File metadata

  • Download URL: voxelworldapi-1.0.20240531.tar.gz
  • Upload date:
  • Size: 2.5 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.0.20240531.tar.gz
Algorithm Hash digest
SHA256 23809779f807696ac4025c340a1aafc5fc90526cec60aff19d3ba7cdcc8e5842
MD5 e9095e67f033ed19ef0b64844477f0e1
BLAKE2b-256 23d9fbe4794acccd462041a9b2196c74e488f4f141efdf950c2686180fadbc87

See more details on using hashes here.

File details

Details for the file voxelworldapi-1.0.20240531-py3-none-any.whl.

File metadata

  • Download URL: voxelworldapi-1.0.20240531-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.0.20240531-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab770a9add38db399905aff5cece255a7333fbad080f8d0e5cf90a8f0e43ff7
MD5 06f8108b44b2360a5debe7ce0011945e
BLAKE2b-256 286298b99f681d8d23483e2d8ef14db9b4c3bff5a0bb45e630d77b5a1801a504

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