Skip to main content

An async Python client for Minecraft 1.12.2 Java Edition servers (offline-mode)

Project description

actmc

PyPI - Version License: MIT Python 3.12+

An async Python client for Minecraft 1.12.2 Java Edition servers (offline-mode).

Key Features

  • Modern async/await API.
  • Comprehensive protocol support.
  • Optimised in both speed and memory.

Installing

Python 3.12 or higher is required

To install the library, you can just run the following command:

# Linux/macOS
python3 -m pip install -U actmc

# Windows
py -3 -m pip install -U actmc

To install the development version, do the following:

$ git clone https://github.com/mrsnifo/actmc
$ cd actmc
$ python3 -m pip install -U .

Quick Example

from actmc import Client
from actmc.ui import chat

client = Client(username='MyBot')

@client.event
async def on_ready():
    print('Connected as', client.username)

@client.event
async def on_system_message(message: chat.Message):
    print("Server:", message)

client.run('localhost', 25565)

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

actmc-1.12.2.post1.tar.gz (89.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

actmc-1.12.2.post1-py3-none-any.whl (124.3 kB view details)

Uploaded Python 3

File details

Details for the file actmc-1.12.2.post1.tar.gz.

File metadata

  • Download URL: actmc-1.12.2.post1.tar.gz
  • Upload date:
  • Size: 89.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for actmc-1.12.2.post1.tar.gz
Algorithm Hash digest
SHA256 04e0ca14856bbc435ccbe24a0e018a2ea91b95a1b5dd969a371280f38fba1cf8
MD5 49e07de15c5bd489b48e16c80a5aa7ce
BLAKE2b-256 ed00baeaac6ac0f30ce0f8c343bbefd1ea91d44667b91854b77acd2dc525cfd1

See more details on using hashes here.

File details

Details for the file actmc-1.12.2.post1-py3-none-any.whl.

File metadata

  • Download URL: actmc-1.12.2.post1-py3-none-any.whl
  • Upload date:
  • Size: 124.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for actmc-1.12.2.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 700aed573d6f22cea6c4838e3fecf9a76a6591f9509fc87a6db6eacd2903c09f
MD5 8b203362f56674b8c27aa7b28d4c8425
BLAKE2b-256 9a3c77d9db97c119c74a7418fab46781d53c062f248311973aabf4e8e1e01dd9

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