Mathics3 Hello, World! module
Project description
This is a Mathics3 Python Module showing the classic “Hello, World!” The purpose is to demonstrate how to write a Mathics3 Python Module which extends Mathics3 by adding a function, but written in Python.
You can also use this as a template to clone if you want to create your own Mathics3 Module.
To install in development mode (run code from the source tree):
$ make develop
After installing inside Mathics3, 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[] Out[2]:= Hello, World! In[2]:= Hello["everyone"] Out[2]:= Hello, everyone!
You can test with pytest:
$ pytest test
or simply:
$ make check
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file mathics3_module_hello-9.0.1.tar.gz.
File metadata
- Download URL: mathics3_module_hello-9.0.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c6ed8a8b42f08f6f45ed44bb5477294f00b09c4f718c9c87d69f49813c3d20
|
|
| MD5 |
e2efaf6cc181388afb05965fd7af6183
|
|
| BLAKE2b-256 |
206e329a8128f4cd809c2020fe82a0b508a8ca40d2afe5d56882bee4e817846e
|
File details
Details for the file mathics3_module_hello-9.0.1-py3-none-any.whl.
File metadata
- Download URL: mathics3_module_hello-9.0.1-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114e54bbeea2a6fe092fc4b1bd23026c5c621e34d72f41f7817e3eaa1a75c615
|
|
| MD5 |
c20f096b01bf3a8b8dbf776eab42ee70
|
|
| BLAKE2b-256 |
53ce843d4d59aedc9f4085087055b8fb85b83607cdaf2bbbab9520b0bd70d38d
|