feedwell 0.1.0a1__py3-none-any.whl

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.
feedwell/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """feedwell package."""
2
+
3
+ __version__ = "0.1.0a1"
feedwell/app.py ADDED
@@ -0,0 +1,51 @@
1
+ """feedwell - All social media accounts suck. This one just sucks less.
2
+
3
+ Placeholder entry point: launches a minimal local web server and opens it
4
+ in the default browser. This will be replaced by the real Django app.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import http.server
10
+ import socketserver
11
+ import threading
12
+ import webbrowser
13
+
14
+ PORT = 8000
15
+
16
+ HTML = b"""<!doctype html>
17
+ <html>
18
+ <head><title>feedwell</title></head>
19
+ <body style="font-family: sans-serif; max-width: 40rem; margin: 4rem auto;">
20
+ <h1>feedwell</h1>
21
+ <p>All social media accounts suck. This one just sucks less.</p>
22
+ <p>(placeholder - real app coming soon)</p>
23
+ </body>
24
+ </html>
25
+ """
26
+
27
+
28
+ class Handler(http.server.BaseHTTPRequestHandler):
29
+ def do_GET(self) -> None:
30
+ self.send_response(200)
31
+ self.send_header("Content-Type", "text/html")
32
+ self.end_headers()
33
+ self.wfile.write(HTML)
34
+
35
+ def log_message(self, format: str, *args) -> None: # noqa: A002
36
+ pass
37
+
38
+
39
+ def main() -> None:
40
+ with socketserver.TCPServer(("127.0.0.1", PORT), Handler) as httpd:
41
+ url = f"http://127.0.0.1:{PORT}"
42
+ print(f"feedwell running at {url} (Ctrl+C to stop)")
43
+ threading.Timer(0.5, lambda: webbrowser.open(url)).start()
44
+ try:
45
+ httpd.serve_forever()
46
+ except KeyboardInterrupt:
47
+ print("\nstopping feedwell")
48
+
49
+
50
+ if __name__ == "__main__":
51
+ main()
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.5
2
+ Name: feedwell
3
+ Version: 0.1.0a1
4
+ Summary: All social media accounts suck. This one just sucks less.
5
+ Project-URL: Homepage, https://github.com/aclark4life/feedwell
6
+ Project-URL: Repository, https://github.com/aclark4life/feedwell
7
+ Project-URL: Issues, https://github.com/aclark4life/feedwell/issues
8
+ Author: Jeffrey 'Alex' Clark
9
+ License: MIT
10
+ Requires-Python: >=3.10
11
+ Provides-Extra: dev
12
+ Requires-Dist: mypy>=1.0.0; extra == 'dev'
13
+ Requires-Dist: pre-commit>=3.0.0; extra == 'dev'
14
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
15
+ Requires-Dist: ruff>=0.8.0; extra == 'dev'
16
+ Description-Content-Type: text/markdown
17
+
18
+ # feedwell
19
+
20
+ > All social media accounts suck. This one just sucks less.
21
+
22
+ A unified, local-first client for your social media feeds — one place to
23
+ read and interact with everything, instead of juggling a pile of terrible
24
+ individual apps.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ pip install feedwell
30
+ ```
31
+
32
+ ## Run
33
+
34
+ ```bash
35
+ feedwell
36
+ ```
37
+
38
+ This launches a local server and opens it in your browser.
39
+
40
+ ## Status
41
+
42
+ Early scaffolding. Not yet useful. 🙂
@@ -0,0 +1,6 @@
1
+ feedwell/__init__.py,sha256=_KdHS7ZJZF_rNgEc_6V2hG-WntUlYGavg0DiM9ecwlo,49
2
+ feedwell/app.py,sha256=HtEA5be5G7jZBG4ZuqPStojp0_o9FvJ-n4Uqa7W2ffc,1376
3
+ feedwell-0.1.0a1.dist-info/METADATA,sha256=GDg5NuuHTVwRwcnUtZVJTGwkH4n_RQrQQPCcfZ9YaLU,1051
4
+ feedwell-0.1.0a1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
5
+ feedwell-0.1.0a1.dist-info/entry_points.txt,sha256=qh__9yfh0qjxN_WczyujXOIY3mw996IKCyba6-XsY8o,47
6
+ feedwell-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ feedwell = feedwell.app:main