lispium 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lispium-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.4
2
+ Name: lispium
3
+ Version: 0.1.0
4
+ Summary: A Symbolic Computer Algebra System
5
+ Author-email: Tetraslam <tetraslam@users.noreply.github.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Tetraslam/lispium
8
+ Project-URL: Repository, https://github.com/Tetraslam/lispium
9
+ Project-URL: Issues, https://github.com/Tetraslam/lispium/issues
10
+ Keywords: cas,computer-algebra,symbolic-math,lisp,mathematics
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Other
18
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown
21
+
22
+ # Lispium
23
+
24
+ A Symbolic Computer Algebra System written in Zig.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install lispium
30
+ ```
31
+
32
+ Or with uv:
33
+
34
+ ```bash
35
+ uv pip install lispium
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ After installation, the `lispium` command is available:
41
+
42
+ ```bash
43
+ # Start the REPL
44
+ lispium repl
45
+
46
+ # Run a file
47
+ lispium run script.lspm
48
+
49
+ # Show version
50
+ lispium --version
51
+
52
+ # Show help
53
+ lispium --help
54
+ ```
55
+
56
+ ## Features
57
+
58
+ - **Symbolic Computation**: Work with symbolic expressions and variables
59
+ - **Calculus**: Differentiation, integration, Taylor series, limits
60
+ - **Linear Algebra**: Matrices, determinants, eigenvalues, linear systems
61
+ - **Algebra**: Polynomial operations, equation solving, factoring
62
+ - **Number Theory**: Prime testing, factorization, modular arithmetic
63
+ - **And much more**: Complex numbers, vectors, statistics, plotting
64
+
65
+ ## Example
66
+
67
+ ```lisp
68
+ ; Differentiate x^3
69
+ (diff (^ x 3) x) ; => (* 3 (^ x 2))
70
+
71
+ ; Solve quadratic equation
72
+ (solve (- (^ x 2) 4) x) ; => {2, -2}
73
+
74
+ ; Matrix determinant
75
+ (det (matrix (1 2) (3 4))) ; => -2
76
+ ```
77
+
78
+ ## Documentation
79
+
80
+ See the [GitHub repository](https://github.com/Tetraslam/lispium) for full documentation.
81
+
82
+ ## License
83
+
84
+ MIT
@@ -0,0 +1,63 @@
1
+ # Lispium
2
+
3
+ A Symbolic Computer Algebra System written in Zig.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install lispium
9
+ ```
10
+
11
+ Or with uv:
12
+
13
+ ```bash
14
+ uv pip install lispium
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ After installation, the `lispium` command is available:
20
+
21
+ ```bash
22
+ # Start the REPL
23
+ lispium repl
24
+
25
+ # Run a file
26
+ lispium run script.lspm
27
+
28
+ # Show version
29
+ lispium --version
30
+
31
+ # Show help
32
+ lispium --help
33
+ ```
34
+
35
+ ## Features
36
+
37
+ - **Symbolic Computation**: Work with symbolic expressions and variables
38
+ - **Calculus**: Differentiation, integration, Taylor series, limits
39
+ - **Linear Algebra**: Matrices, determinants, eigenvalues, linear systems
40
+ - **Algebra**: Polynomial operations, equation solving, factoring
41
+ - **Number Theory**: Prime testing, factorization, modular arithmetic
42
+ - **And much more**: Complex numbers, vectors, statistics, plotting
43
+
44
+ ## Example
45
+
46
+ ```lisp
47
+ ; Differentiate x^3
48
+ (diff (^ x 3) x) ; => (* 3 (^ x 2))
49
+
50
+ ; Solve quadratic equation
51
+ (solve (- (^ x 2) 4) x) ; => {2, -2}
52
+
53
+ ; Matrix determinant
54
+ (det (matrix (1 2) (3 4))) ; => -2
55
+ ```
56
+
57
+ ## Documentation
58
+
59
+ See the [GitHub repository](https://github.com/Tetraslam/lispium) for full documentation.
60
+
61
+ ## License
62
+
63
+ MIT
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "lispium"
7
+ version = "0.1.0"
8
+ description = "A Symbolic Computer Algebra System"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [
12
+ {name = "Tetraslam", email = "tetraslam@users.noreply.github.com"}
13
+ ]
14
+ keywords = ["cas", "computer-algebra", "symbolic-math", "lisp", "mathematics"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Science/Research",
19
+ "Intended Audience :: Education",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: OS Independent",
22
+ "Programming Language :: Other",
23
+ "Topic :: Scientific/Engineering :: Mathematics",
24
+ ]
25
+ requires-python = ">=3.8"
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/Tetraslam/lispium"
29
+ Repository = "https://github.com/Tetraslam/lispium"
30
+ Issues = "https://github.com/Tetraslam/lispium/issues"
31
+
32
+ [project.scripts]
33
+ lispium = "lispium.cli:main"
34
+
35
+ [tool.setuptools.packages.find]
36
+ where = ["src"]
37
+
38
+ [tool.setuptools.package-data]
39
+ lispium = ["bin/*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Lispium - A Symbolic Computer Algebra System"""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,80 @@
1
+ """Command-line interface wrapper for Lispium."""
2
+
3
+ import os
4
+ import sys
5
+ import platform
6
+ import subprocess
7
+ from pathlib import Path
8
+
9
+
10
+ def get_binary_path() -> Path:
11
+ """Get the path to the Lispium binary for the current platform."""
12
+ system = platform.system().lower()
13
+ machine = platform.machine().lower()
14
+
15
+ # Normalize architecture names
16
+ if machine in ("x86_64", "amd64"):
17
+ arch = "x86_64"
18
+ elif machine in ("arm64", "aarch64"):
19
+ arch = "aarch64"
20
+ else:
21
+ arch = machine
22
+
23
+ # Determine binary name based on OS
24
+ if system == "windows":
25
+ binary_name = f"lispium-{system}-{arch}.exe"
26
+ else:
27
+ binary_name = f"lispium-{system}-{arch}"
28
+
29
+ # Look for binary in package directory
30
+ package_dir = Path(__file__).parent
31
+ binary_path = package_dir / "bin" / binary_name
32
+
33
+ if binary_path.exists():
34
+ return binary_path
35
+
36
+ # Fallback: try to find 'lispium' in PATH
37
+ import shutil
38
+ system_binary = shutil.which("lispium")
39
+ if system_binary:
40
+ return Path(system_binary)
41
+
42
+ # If no platform-specific binary, try generic name
43
+ generic_path = package_dir / "bin" / "lispium"
44
+ if generic_path.exists():
45
+ return generic_path
46
+
47
+ raise FileNotFoundError(
48
+ f"Lispium binary not found for platform {system}-{arch}. "
49
+ f"Please install Lispium separately or ensure it's in your PATH. "
50
+ f"Visit https://github.com/Tetraslam/lispium/releases for downloads."
51
+ )
52
+
53
+
54
+ def main():
55
+ """Run Lispium with the provided arguments."""
56
+ try:
57
+ binary_path = get_binary_path()
58
+ except FileNotFoundError as e:
59
+ print(f"Error: {e}", file=sys.stderr)
60
+ sys.exit(1)
61
+
62
+ # Make sure binary is executable on Unix
63
+ if platform.system() != "Windows":
64
+ os.chmod(binary_path, 0o755)
65
+
66
+ # Run the binary with all provided arguments
67
+ args = [str(binary_path)] + sys.argv[1:]
68
+
69
+ try:
70
+ result = subprocess.run(args)
71
+ sys.exit(result.returncode)
72
+ except KeyboardInterrupt:
73
+ sys.exit(130)
74
+ except Exception as e:
75
+ print(f"Error running Lispium: {e}", file=sys.stderr)
76
+ sys.exit(1)
77
+
78
+
79
+ if __name__ == "__main__":
80
+ main()
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.4
2
+ Name: lispium
3
+ Version: 0.1.0
4
+ Summary: A Symbolic Computer Algebra System
5
+ Author-email: Tetraslam <tetraslam@users.noreply.github.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Tetraslam/lispium
8
+ Project-URL: Repository, https://github.com/Tetraslam/lispium
9
+ Project-URL: Issues, https://github.com/Tetraslam/lispium/issues
10
+ Keywords: cas,computer-algebra,symbolic-math,lisp,mathematics
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Other
18
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown
21
+
22
+ # Lispium
23
+
24
+ A Symbolic Computer Algebra System written in Zig.
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install lispium
30
+ ```
31
+
32
+ Or with uv:
33
+
34
+ ```bash
35
+ uv pip install lispium
36
+ ```
37
+
38
+ ## Usage
39
+
40
+ After installation, the `lispium` command is available:
41
+
42
+ ```bash
43
+ # Start the REPL
44
+ lispium repl
45
+
46
+ # Run a file
47
+ lispium run script.lspm
48
+
49
+ # Show version
50
+ lispium --version
51
+
52
+ # Show help
53
+ lispium --help
54
+ ```
55
+
56
+ ## Features
57
+
58
+ - **Symbolic Computation**: Work with symbolic expressions and variables
59
+ - **Calculus**: Differentiation, integration, Taylor series, limits
60
+ - **Linear Algebra**: Matrices, determinants, eigenvalues, linear systems
61
+ - **Algebra**: Polynomial operations, equation solving, factoring
62
+ - **Number Theory**: Prime testing, factorization, modular arithmetic
63
+ - **And much more**: Complex numbers, vectors, statistics, plotting
64
+
65
+ ## Example
66
+
67
+ ```lisp
68
+ ; Differentiate x^3
69
+ (diff (^ x 3) x) ; => (* 3 (^ x 2))
70
+
71
+ ; Solve quadratic equation
72
+ (solve (- (^ x 2) 4) x) ; => {2, -2}
73
+
74
+ ; Matrix determinant
75
+ (det (matrix (1 2) (3 4))) ; => -2
76
+ ```
77
+
78
+ ## Documentation
79
+
80
+ See the [GitHub repository](https://github.com/Tetraslam/lispium) for full documentation.
81
+
82
+ ## License
83
+
84
+ MIT
@@ -0,0 +1,13 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/lispium/__init__.py
4
+ src/lispium/cli.py
5
+ src/lispium.egg-info/PKG-INFO
6
+ src/lispium.egg-info/SOURCES.txt
7
+ src/lispium.egg-info/dependency_links.txt
8
+ src/lispium.egg-info/entry_points.txt
9
+ src/lispium.egg-info/top_level.txt
10
+ src/lispium/bin/lispium-darwin-aarch64
11
+ src/lispium/bin/lispium-darwin-x86_64
12
+ src/lispium/bin/lispium-linux-x86_64
13
+ src/lispium/bin/lispium-windows-x86_64.exe
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ lispium = lispium.cli:main
@@ -0,0 +1 @@
1
+ lispium