X9 by Pymoduledev
NOTE: X9 only works in Python 3.1+
Updates
1.0.1 - bug fixes in description
1.0.0 - initial release
What is X9?
X9 is a comprehensive Python module developed by pymoduledev, offering three essential classes that cater to various programming needs. The module includes the following classes:
gui: Provides functionalities for creating and managing graphical user interfaces (GUIs) usingtkinter.web: Enables the development of web applications usingwsgiref.simple_server'smake_serverandlogging.maths: An improved version of the standardmathmodule, offering additional mathematical capabilities made usingmath.
How to Install X9
You can easily install X9 using pip:
pip install x9
How do I use X9?
X9 is very easy to understand, and you can take an tutorial here right now.
GUI Class
The gui class facilitates the creation of user-friendly graphical interfaces. Here's a simple example:
from x9 import gui
window = gui.new()
window.bg(color='#000000')
window.title('My Window')
window.favicon('path/to/favicon.ico')
window.resize("1880x600")
textbox = window.textbox(placeholder='type here...')
textbox.resize(100)
text = gui.label('Hey!')
gui.font(text, 'Arial', 16, is_bold=True)
button = window.button(value='submit',command=lambda: print(textbox.get()))
window.run()
Web Class
With the web class, you can effortlessly build web applications and APIs. Here's a basic example:
from x9 import web
app = web() #Create the web instance
def index():
return '<p>Hello, World!</p>'
def render_html():
return app.html('index.html') #This will get the contents of the index.html file assuming it is in the same directory as the Python file
app.new(index, '/')
app.new(render_html, '/render-html')
app.run()
Maths Class
The maths class extends the capabilities of the standard math module. Take advantage of its additional functions:
from x9 import maths as ImprovedMath
# Using Algebra functions
a, b, c = 1, -3, 2
roots = ImprovedMath.Algebra.quadratic_formula(a, b, c)
print(f"The roots of the quadratic equation {a}x^2 + {b}x + {c} = 0 are: {roots}")
# Using Calculus functions
coefficients = [1, 2, 3]
x = 2
derivative_at_x = ImprovedMath.Calculus.differentiate_polynomial(coefficients, x)
print(f"The derivative of the polynomial {coefficients} at x={x} is: {derivative_at_x}")
# Using Statistics functions
data = [2, 4, 6, 8, 10]
mean_value = ImprovedMath.Statistics.mean(data)
print(f"The mean of the data {data} is: {mean_value}")
variance_value = ImprovedMath.Statistics.variance(data)
print(f"The variance of the data {data} is: {variance_value}")
Contributions
We welcome contributions from the community to enhance X9 further. Feel free to share your ideas, report bugs, or request new features at the official PyModuleDev website(pymoduledev.neocities.org)
License
X9 is distributed under the Apache License 2.0. A copy of the License can be found at https://www.apache.org/licenses/LICENSE-2.0.txt.
Contact
For any questions or support, you can reach out to pymoduledev at pxcom@mail.com.
Metadata
Release files for x9 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x9-1.0.1.tar.gz | 9.7 kB | Without provenance | Details for x9-1.0.1.tar.gz |
Release files / x9-1.0.1.tar.gz
| Download URL | x9-1.0.1.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdc5921d32e293ffe1b995eaee6a6237471c1979602196c1d6232e1bf496e341
|
|
BLAKE2b-256 checksum How to use checksums |
afc6fda97b9c53f8c81d5e3f72c6b8a33e631713080ac8dc280f175728f88d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for x9 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.