Weeaboo 28__tar.gz → 30__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: Weeaboo
3
- Version: 28
3
+ Version: 30
4
4
  Summary: Shared code for websites
5
5
  Home-page: https://pypi.org/project/Weeaboo/
6
6
  Author: Homsar
@@ -9,7 +9,7 @@ Description-Content-Type: text/markdown
9
9
  Requires-Dist: aiohttp>=3.13.2
10
10
  Requires-Dist: aridity>=73
11
11
  Requires-Dist: diapyr>=30
12
- Requires-Dist: foyndation>=10
12
+ Requires-Dist: foyndation>=13
13
13
  Requires-Dist: lagoon>=49
14
14
  Requires-Dist: splut>=18
15
15
  Requires-Dist: Werkzeug>=2.0.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: Weeaboo
3
- Version: 28
3
+ Version: 30
4
4
  Summary: Shared code for websites
5
5
  Home-page: https://pypi.org/project/Weeaboo/
6
6
  Author: Homsar
@@ -9,7 +9,7 @@ Description-Content-Type: text/markdown
9
9
  Requires-Dist: aiohttp>=3.13.2
10
10
  Requires-Dist: aridity>=73
11
11
  Requires-Dist: diapyr>=30
12
- Requires-Dist: foyndation>=10
12
+ Requires-Dist: foyndation>=13
13
13
  Requires-Dist: lagoon>=49
14
14
  Requires-Dist: splut>=18
15
15
  Requires-Dist: Werkzeug>=2.0.1
@@ -1,7 +1,7 @@
1
1
  aiohttp>=3.13.2
2
2
  aridity>=73
3
3
  diapyr>=30
4
- foyndation>=10
4
+ foyndation>=13
5
5
  lagoon>=49
6
6
  splut>=18
7
7
  Werkzeug>=2.0.1
@@ -49,13 +49,13 @@ class SourceInfo:
49
49
  sourceinfo = SourceInfo('.')
50
50
  setup(
51
51
  name = 'Weeaboo',
52
- version = '28',
52
+ version = '30',
53
53
  description = 'Shared code for websites',
54
54
  url = 'https://pypi.org/project/Weeaboo/',
55
55
  author = 'Homsar',
56
56
  author_email = 'homsar@foyono.com',
57
57
  py_modules = ['rmexcept', 'runsite'],
58
- install_requires = ['aiohttp>=3.13.2', 'aridity>=73', 'diapyr>=30', 'foyndation>=10', 'lagoon>=49', 'splut>=18', 'Werkzeug>=2.0.1'],
58
+ install_requires = ['aiohttp>=3.13.2', 'aridity>=73', 'diapyr>=30', 'foyndation>=13', 'lagoon>=49', 'splut>=18', 'Werkzeug>=2.0.1'],
59
59
  package_data = {'': ['*.pxd', '*.pyx', '*.pyxbld', '*.arid', '*.aridt']},
60
60
  entry_points = {'console_scripts': ['rmexcept=rmexcept:main', 'runsite=runsite:main']},
61
61
  **sourceinfo.setup_kwargs(),
@@ -3,10 +3,11 @@ from aiohttp import web
3
3
  from aridity.config import Config
4
4
  from datetime import datetime
5
5
  from diapyr import types
6
+ from foyndation import rmprefix
6
7
  from splut.actor import Spawn
7
8
  from urllib.parse import urlencode
8
9
  from urllib.request import urlopen
9
- import logging
10
+ import asyncio, logging
10
11
 
11
12
  log = logging.getLogger(__name__)
12
13
 
@@ -35,4 +36,12 @@ class SiteMeter:
35
36
  self.actor.send(f"{datetime.now()} {hitinfo}").andforget(log)
36
37
  return await handler(request)
37
38
 
39
+ async def _blackhole(request):
40
+ log.debug("Black hole: %s", request)
41
+ await asyncio.get_running_loop().create_future()
42
+
43
+ def blackholeroutes(config):
44
+ for p in config.blackholepath:
45
+ yield web.get('/{before:|.*/}' + rmprefix(p, '/') + r'{after:\b.*}', _blackhole)
46
+
38
47
  class AIOApplication(web.Application, Application): pass
@@ -0,0 +1,34 @@
1
+ applicationcls := $list()
2
+ blackholepath +=
3
+ /.amplifyrc
4
+ /.aws
5
+ /.boto
6
+ /.claude
7
+ /.cursor
8
+ /.docker
9
+ /docker-compose
10
+ /Dockerfile
11
+ /.env
12
+ /.git
13
+ /.github
14
+ /.gitlab
15
+ /.gitmodules
16
+ /.htaccess
17
+ /laravel
18
+ /litellm
19
+ /llm
20
+ /.netrc
21
+ /_next
22
+ /.npmrc
23
+ /_nuxt
24
+ /phpinfo
25
+ /server-info
26
+ /settings
27
+ /.svn
28
+ /vite
29
+ /wordpress
30
+ /wp-config
31
+ /wp-content
32
+ /wp-includes
33
+ /wp-Iogin
34
+ /wp-security
@@ -1 +0,0 @@
1
- applicationcls := $list()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes