A Python API wrapper for the Palworld Rest API.
Project description
Palworld REST API Wrapper
This is a simple Palworld REST API Wrapper for Python project. This supports all API endpoints for Palworld.
Version
v1.0.1
Installation
- Install
palworld-api
using pip:pip install palworld-api
- Import into your project.
import asyncio from palworld_api import PalworldAPI
Requirements
- Python 3.8+
- RestAPI Enabled
Usage
Refer to example files to get an idea of how this works. Here is a basic usage:
import asyncio
from palworld_api import PalworldAPI
async def main():
server_url = "http://localhost:8212"
username = "admin"
password = "admin password"
api = PalworldAPI(server_url, username, password)
server_info = await api.get_server_info()
print("Server Info:", server_info)
if __name__ == "__main__":
asyncio.run(main())
Resources
For detailed documentation on the Palworld REST API, check out the official REST API Documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
palworld-api-1.0.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for palworld_api-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbcb2761063bed8bb37e9db5e8159b5dd9f0c23c3e1759f1eca6dae768d797f2 |
|
MD5 | d9daffaacc2d39185db11a6223461399 |
|
BLAKE2b-256 | bb58bfb354f727e221168c8bcbbf9ba3a332973a35e079bff08410d2c3821966 |