No project description provided
Project description
NovelCraft SDK for Python
NovelCraft SDK for Python is a Python library for communicating with NovelCraft Servers and accessing NovelCraft game data.
Installation
Use the package manager pip to install.
pip install novelcraft.sdk
Usage
import novelcraft.sdk as ncsdk
async def main():
await sdk.initialize()
get_logger().info('Hello, world!')
while True:
await asyncio.sleep(0)
if ncsdk.get_agent() is None:
await asyncio.sleep(1)
continue
agent = ncsdk.get_agent()
agent.set_movement(IAgent.MovementKind.FORWARD)
await ncsdk.finalize()
ncsdk.get_logger().info('Goodbye, world!')
if __name__ == '__main__':
asyncio.run(main())
For more information, please refer to the documentation.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
novelcraft_sdk-0.0.2.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for novelcraft_sdk-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a33c75126274c5f60cd4381ce84587b7f7f485d2886cb995375b83b79b78ca6 |
|
MD5 | 81ee52571c21f57a0d41780e5d638cc0 |
|
BLAKE2b-256 | 4d511eb4c16f8781a900e2ca8e4d78e78077e45e3ec6b5db5b2e966e7ca0d172 |