Socket
Socket
Sign inDemoInstall

voxelworldapi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voxelworldapi

A Python library for interacting with VoxelWorld API


Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc