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'
Metadata
Release files for pysmx 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysmx-0.4.0.tar.gz | 2.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysmx-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 MB
Release files / pysmx-0.4.0.tar.gz
| Download URL | pysmx-0.4.0.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5be2f3ea8f6cebaa368b98c0f0ebb697710bb66489f87ae2babe1eb6966ad9d
|
|
BLAKE2b-256 checksum How to use checksums |
28c4054bbe0806c63bab38b7b5bf9e6a18bacdd4730e3fe8af0b789adcfc1c08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/5.13.0-52-generic
|
Release files / pysmx-0.4.0-py3-none-any.whl
| Download URL | pysmx-0.4.0-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05b5754279d250f37fb666c2d452d46ebf45cc5adf67f636fff7639cc9908348
|
|
BLAKE2b-256 checksum How to use checksums |
7a2cb975001c50180a290c0c575738df5ec011d73de994137652323429552c79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.2 Linux/5.13.0-52-generic
|