Interact with SourceMod plug-ins
Project description
pysmx
pysmx is a Python package for parsing, executing, and simulating the environment of SourceMod plug-ins.
Quickstart
pip install pysmx
from smx import compile_plugin
plugin = compile_plugin('''
public TwoPlusTwo() {
return 2 + 2;
}
public float FiveDividedByTen() {
return 5.0 / 10.0;
}
public String:Snakes() {
new String:s[] = "hiss";
return s;
}
''')
print(plugin.runtime.call_function_by_name('TwoPlusTwo'))
# 4
print(plugin.runtime.call_function_by_name('FiveDividedByTen'))
# 0.5
print(plugin.runtime.call_function_by_name('Snakes'))
# 'hiss'
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
pysmx-0.4.0.tar.gz
(2.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysmx-0.4.0-py3-none-any.whl
(2.4 MB
view details)
File details
Details for the file pysmx-0.4.0.tar.gz.
File metadata
- Download URL: pysmx-0.4.0.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/5.13.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5be2f3ea8f6cebaa368b98c0f0ebb697710bb66489f87ae2babe1eb6966ad9d
|
|
| MD5 |
c722742599379be3cf17a0d12a721e89
|
|
| BLAKE2b-256 |
28c4054bbe0806c63bab38b7b5bf9e6a18bacdd4730e3fe8af0b789adcfc1c08
|
File details
Details for the file pysmx-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pysmx-0.4.0-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/5.13.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05b5754279d250f37fb666c2d452d46ebf45cc5adf67f636fff7639cc9908348
|
|
| MD5 |
3514ce9f1b0c9139473b0a07243b3aa2
|
|
| BLAKE2b-256 |
7a2cb975001c50180a290c0c575738df5ec011d73de994137652323429552c79
|