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.3
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
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.3.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file palworld_api-1.0.3.tar.gz
.
File metadata
- Download URL: palworld_api-1.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f305a4efb75ececb3dba8d20aad68f6197749143f7339d0c753f4c9294e1d3 |
|
MD5 | 06878a803df9b00ee594ddf70a2c8f2c |
|
BLAKE2b-256 | ce2e103180e5781750ac6631802891851617e5f295d1f09ed7a6ada9cdadc7d1 |
File details
Details for the file palworld_api-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: palworld_api-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd2e450c63a01a0e6fdf299d33e5e37006b55e63adae577d3e1b68325b7fa0c1 |
|
MD5 | 465855a5d5fdacf99bfcabe712c8c5de |
|
BLAKE2b-256 | 76b09148d5e2df7ea3650ec98d3eb6450fcf0b966446283081aa0287b5fa2b7f |