This project has been archived by its maintainers, and is no longer receiving any updates.
Test PyMathics module
This is a Python module for Mathics that is an simple “Hello, World” example that is typically used as a minimal example for demonstration.
You can also use this as a template to clone if you want to create your own Pymathics module.
Here we are demonstrating how to write a PyMathics module.
To install in development mode (run code from the source tree):
$ make develop
After installing inside Mathics you can load this using the LoadModule[] function.
Then the function `Hello[] is available:
$ mathicsscript In[1]:= LoadModule["pymathics.hello"] Out[1]= pymathics.hello In[2]:= Hello["World"] Out[2]:= Hello, World!
You can test with py.test:
$ py.test test
or simply:
$ make check
Release files for pymathics-hello 7.0.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 | |
|---|---|---|---|
| pymathics-hello-7.0.0.tar.gz | 17.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymathics_hello-7.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.7 kB
Release files / pymathics-hello-7.0.0.tar.gz
| Download URL | pymathics-hello-7.0.0.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97f3d9f46ee9d2ab119b00c7dc97dbe41b42c954aa351b102c99433f827afb0e
|
|
BLAKE2b-256 checksum How to use checksums |
e65bc40e7339a1591e8a06c2a1f066a345820d1165533b5c3e75b96506a8b792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / pymathics_hello-7.0.0-py3-none-any.whl
| Download URL | pymathics_hello-7.0.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c3b673b442078742590576962d245088a7abe6ce16d4ed861557d2900529c7a
|
|
BLAKE2b-256 checksum How to use checksums |
6e9206a401c91a083985d11f09d09411b7de16cc9c4056a6866889029eada049
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|