Skip to main content

"shares" is no longer the name of this endeavor.

The endeavor continues as "sphene".

https://pypi.org/project/sphene

If there are problems with "shares", change requests
might still be addressed.


Bravo! You have received a Mercantilism Diploma in "shares" from
the Orbital Convergence University International Air and Water
Embassy of the 🍊 Planet (the planet that is one ellipse further from
the Sun than Earth's ellipse).

You are now officially certified to include "shares" in your practice.


shares


description

Started from the shell, "shares" presents files in the current working directory (cwd) that have extension ".s.HTML" (case sensitive).


install

[ZSH] pip install shares


start from shell

[ZSH] shares

Shares starts on port 2345, or the first avaible port after that.

This is the equivalent of:
[ZSH] shares start --port 2345

--

Alternatively you can add --static-port and "shares"
stops if the port specified is unavailable.
[ZSH] shares 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>

start programmatically

import pathlib
from os.path import dirname, join, normpath
this_folder = pathlib.Path (__file__).parent.resolve ()

import shares
shares.start ({
	"extension": ".s.HTML",
	
	#
	#	This is the node from which the traversal occur.
	#
	"directory": str (this_folder) + "/structures/shares",
	
	#
	#	This path is removed from the absolute path of share files found.
	#
	"relative path": str (this_folder) + "/structures/shares"
})

import time
while True:
	time.sleep (1000)

Contacts

bgrace2345@pm.me

Metadata

Release files for shares 3.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shares 3.1.10
File Size Uploaded
shares-3.1.10.tar.gz 30.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shares 3.1.10
File Interpreter ABI Platform
shares-3.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 59.6 kB

Release files / shares-3.1.10.tar.gz

Download URL shares-3.1.10.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d416d31cc102ace005ad688c1fa06409291d2956d0829eb0d6a680f4d371d9b
BLAKE2b-256 checksum
How to use checksums
9eb9548a604bb43e2af47fb5f5faed03982f68d14c11129b41e296855e9dc792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-27-generic

Release files / shares-3.1.10-py3-none-any.whl

Download URL shares-3.1.10-py3-none-any.whl
Size 28.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
326b8900acac067463255bc230537562e16d10c84f78d1afc57f4f07027791c4
BLAKE2b-256 checksum
How to use checksums
ccf963868fb26bb8ab1b70a5bb91efa228e5f2d1da484f7e5ef0d897443a9291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-27-generic

Release history Release notifications | RSS feed

This release

3.1.10 This release

2 release files

3.1.9

2 release files

3.1.8

2 release files

3.1.7

1 release file

3.1.6

1 release file

3.1.5

1 release file

3.1.4

1 release file

3.1.3

1 release file

3.1.2

1 release file

3.1.1

1 release file

3.1.0

1 release file

3.0.10

1 release file

3.0.9

1 release file

3.0.8

1 release file

3.0.7

1 release file

3.0.6

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.0.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page