Bravo! You have received a Mercantilism Diploma in "sphene" from
the Orbital Convergence University International Air and Water
Embassy of the Tangerine Planet 🍊 (the planet that is one ellipse further from
the Sun than Earth's ellipse).
You are now officially certified to include "sphene" in your practice!
Encore! Encore! Encore! Encore!
💎 sphene
💍 description
Started from the shell, "sphene" presents files in the current working directory (CWD) that have extension ".s.HTML" (case sensitive).
🎁 obtainment
[xonsh] pip install sphene
⚜️ the shell interface
[xonsh] sphene
"sphene" starts on port 2345, or the first avaible port after that.
- Running on http://127.0.0.1:2345
This is the equivalent of:
[xonsh] sphene start --port 2345
--
Alternatively you can add --static-port and "sphene"
stops if the port specified is unavailable.
[xonsh] sphene start --port 2345 --static-port
--
This is an example ".s.HTML" file.
<pre>
<h1>This is an example HTML file.</h1>
<p>
It really only needs the "pre" tag to
look like a reflection of its contents in a browser.
</p>
<p>
Tags like "html" and "body" are actually not
necessary for rendering HTML in modern browsers.
</p>
<p>
for text to wrap, instead of extending off the page,
style "white-space: pre-wrap" can be utilized instead of
a "pre" tag like so:
<div style="white-space: pre-wrap"></div>
</p>
</pre>
However, here is the "CSS1Compat" option,
https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode
with scaling based on the browser screen "viewport" of the screen,
https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
and support for UTF-8 characters.
http://www.unicode.org/charts
https://www.w3.org/International/questions/qa-html-encoding-declarations
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<main>
<article style="white-space: pre-wrap">
</article>
</main>
</body>
</html>
the python3 interface
import pathlib
from os.path import dirname, join, normpath
this_folder = pathlib.Path (__file__).parent.resolve ()
import sphene
sphene.start ({
"extension": ".s.HTML",
#
# This is the node from which the traversal occur.
#
"directory": str (this_folder) + "/structures/sphene",
#
# This path is removed from the absolute path of share files found.
#
"relative path": str (this_folder) + "/structures/sphene"
})
import time
while True:
time.sleep (1000)
contacts
Metadata
Release files for sphene 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sphene-1.0.7.tar.gz | 22.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphene-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.4 kB
Release files / sphene-1.0.7.tar.gz
| Download URL | sphene-1.0.7.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
324589a36fb9c8578f18ad862c9ec99631943a34caf16899cfbcf3f2749971be
|
|
BLAKE2b-256 checksum How to use checksums |
0c3ad4d70ee2c54ed1c251f1bcfb9ee7de61c352610182daa261524f89c0d822
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / sphene-1.0.7-py3-none-any.whl
| Download URL | sphene-1.0.7-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
003f131d8fe5ec55c347d0ca6fc8fee647ea4a902a64dd38f9512ab41d364bc9
|
|
BLAKE2b-256 checksum How to use checksums |
8b48a82d909d1d834e7065bc8154e7d66ad1b4225b8ddf782085287b079c97f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|