active-boxes 0.0.1.dev2__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.
- active_boxes-0.0.1.dev2/LICENSE +22 -0
- active_boxes-0.0.1.dev2/PKG-INFO +45 -0
- active_boxes-0.0.1.dev2/README.md +19 -0
- active_boxes-0.0.1.dev2/active_boxes/__init__.py +12 -0
- active_boxes-0.0.1.dev2/active_boxes/__version__.py +11 -0
- active_boxes-0.0.1.dev2/active_boxes/activitypub.py +984 -0
- active_boxes-0.0.1.dev2/active_boxes/backend.py +128 -0
- active_boxes-0.0.1.dev2/active_boxes/collection.py +70 -0
- active_boxes-0.0.1.dev2/active_boxes/content_helper.py +69 -0
- active_boxes-0.0.1.dev2/active_boxes/errors.py +92 -0
- active_boxes-0.0.1.dev2/active_boxes/httpsig.py +145 -0
- active_boxes-0.0.1.dev2/active_boxes/key.py +63 -0
- active_boxes-0.0.1.dev2/active_boxes/linked_data_sig.py +83 -0
- active_boxes-0.0.1.dev2/active_boxes/urlutils.py +66 -0
- active_boxes-0.0.1.dev2/active_boxes/webfinger.py +92 -0
- active_boxes-0.0.1.dev2/pyproject.toml +67 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018, Thomas Sileo
|
|
4
|
+
Copyright (c) 2025, Chaiwat Suttipongsakul
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR PERFORMANCE OF THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: active-boxes
|
|
3
|
+
Version: 0.0.1.dev2
|
|
4
|
+
Summary: Tiny ActivityPub framework written in Python, both database and server agnostic.
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Chaiwat Suttipongsakul
|
|
7
|
+
Author-email: cwt@bashell.com
|
|
8
|
+
Requires-Python: >=3.6.0
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
14
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: black ; extra == "dev"
|
|
18
|
+
Requires-Dist: codecov ; extra == "dev"
|
|
19
|
+
Requires-Dist: flake8 ; extra == "dev"
|
|
20
|
+
Requires-Dist: httpretty ; extra == "dev"
|
|
21
|
+
Requires-Dist: mypy ; extra == "dev"
|
|
22
|
+
Requires-Dist: pytest ; extra == "dev"
|
|
23
|
+
Requires-Dist: pytest-cov ; extra == "dev"
|
|
24
|
+
Project-URL: Homepage, https://github.com/cwt/active-boxes
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# Active Boxes (Modernized Little Boxes)
|
|
28
|
+
|
|
29
|
+
This project is a fork of [Little Boxes](https://github.com/tsileo/little-boxes) that is currently being modernized and relicensed from ISC to MIT.
|
|
30
|
+
|
|
31
|
+
⚠️ **Work in Progress** ⚠️
|
|
32
|
+
|
|
33
|
+
This project is in the process of being modernized and updated to current Python packaging standards.
|
|
34
|
+
The original README can be found in [ORIGINAL-README.md](ORIGINAL-README.md).
|
|
35
|
+
|
|
36
|
+
## Modernization Progress
|
|
37
|
+
|
|
38
|
+
- [x] Migrated from `setup.py` to `pyproject.toml`
|
|
39
|
+
- [x] Moved development dependencies to `pyproject.toml`
|
|
40
|
+
- [x] Switched to Poetry for dependency management and building
|
|
41
|
+
- [ ] More modernization steps to come...
|
|
42
|
+
|
|
43
|
+
## Original Project
|
|
44
|
+
|
|
45
|
+
For information about the original project, please refer to [ORIGINAL-README.md](ORIGINAL-README.md).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Active Boxes (Modernized Little Boxes)
|
|
2
|
+
|
|
3
|
+
This project is a fork of [Little Boxes](https://github.com/tsileo/little-boxes) that is currently being modernized and relicensed from ISC to MIT.
|
|
4
|
+
|
|
5
|
+
⚠️ **Work in Progress** ⚠️
|
|
6
|
+
|
|
7
|
+
This project is in the process of being modernized and updated to current Python packaging standards.
|
|
8
|
+
The original README can be found in [ORIGINAL-README.md](ORIGINAL-README.md).
|
|
9
|
+
|
|
10
|
+
## Modernization Progress
|
|
11
|
+
|
|
12
|
+
- [x] Migrated from `setup.py` to `pyproject.toml`
|
|
13
|
+
- [x] Moved development dependencies to `pyproject.toml`
|
|
14
|
+
- [x] Switched to Poetry for dependency management and building
|
|
15
|
+
- [ ] More modernization steps to come...
|
|
16
|
+
|
|
17
|
+
## Original Project
|
|
18
|
+
|
|
19
|
+
For information about the original project, please refer to [ORIGINAL-README.md](ORIGINAL-README.md).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
|
|
3
|
+
logger = logging.getLogger(__name__)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def strtobool(s: str) -> bool: # pragma: no cover
|
|
7
|
+
if s in ["y", "yes", "true", "on", "1"]:
|
|
8
|
+
return True
|
|
9
|
+
if s in ["n", "no", "false", "off", "0"]:
|
|
10
|
+
return False
|
|
11
|
+
|
|
12
|
+
raise ValueError(f"cannot convert {s} to bool")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
try:
|
|
2
|
+
import importlib.metadata as importlib_metadata
|
|
3
|
+
except ImportError:
|
|
4
|
+
# Python < 3.8
|
|
5
|
+
import importlib_metadata
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
__version__ = importlib_metadata.version("active-boxes")
|
|
9
|
+
except importlib_metadata.PackageNotFoundError:
|
|
10
|
+
# Package is not installed
|
|
11
|
+
__version__ = "unknown"
|