PyMetaverse
A library for connecting to Second Life, OpenSimulator, or other compatible grids.
Simple bot example
import asyncio
import datetime
from metaverse import login
from metaverse.bot import SimpleBot
from metaverse.const import *
bot = SimpleBot()
@bot.on("message", name="ChatFromSimulator")
def ChatFromSimulator(simulator, message):
# Ignore start / stop
if message.ChatData.ChatType in (4, 5):
return
sender = message.ChatData.FromName.rstrip(b"\0").decode()
text = message.ChatData.Message.rstrip(b"\0").decode()
if text == "logout":
bot.say(0, "Ok!")
bot.logout()
print("[{}] {}: {}".format(
datetime.datetime.now().strftime("%Y-%M-%d %H:%m:%S"),
sender,
text
))
async def main():
await bot.login(("Example", "Resident"), "password")
await bot.run()
# Run everything
asyncio.run(main())
Similar Projects
- Second Life Viewer (C++) - https://github.com/secondlife/viewer
- LibreMetaverse (C#) - https://github.com/cinderblocks/libremetaverse
- Node Metaverse (NodeJS) - https://github.com/CasperTech/node-metaverse
Metadata
Release files for Metaverse 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metaverse-0.0.5.tar.gz | 28.5 kB | Without provenance | Details for metaverse-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metaverse-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for metaverse-0.0.5-py3-none-any.whl |
Total release size: 60.6 kB
Release files / metaverse-0.0.5.tar.gz
| Download URL | metaverse-0.0.5.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
691874754a62def58a6bb92949104627f8b29d2df3ce4461e0c2b514b777a4cf
|
|
BLAKE2b-256 checksum How to use checksums |
e15ee0c876cfc3bf9ffa6df75bfef581dd145621922dee94f78865c69841d6a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / metaverse-0.0.5-py3-none-any.whl
| Download URL | metaverse-0.0.5-py3-none-any.whl |
|---|---|
| Size | 32.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
077181434be514d0aaa43f6a3fa349e8b4c91a3de977f444a2e356da32d3d138
|
|
BLAKE2b-256 checksum How to use checksums |
69be54c56a04647ed09dbf14e94e4eddfe0ff48bde4149c678fb8f1982b93620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for Metaverse 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.