dismessage 0.4.0__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.
- dismessage-0.4.0/LICENSE +21 -0
- dismessage-0.4.0/MANIFEST.in +3 -0
- dismessage-0.4.0/PKG-INFO +56 -0
- dismessage-0.4.0/README.md +25 -0
- dismessage-0.4.0/dismessage/__init__.py +877 -0
- dismessage-0.4.0/dismessage/discord_payload.b64 +1 -0
- dismessage-0.4.0/dismessage/friend_request_payload.b64 +1 -0
- dismessage-0.4.0/dismessage.egg-info/PKG-INFO +56 -0
- dismessage-0.4.0/dismessage.egg-info/SOURCES.txt +12 -0
- dismessage-0.4.0/dismessage.egg-info/dependency_links.txt +1 -0
- dismessage-0.4.0/dismessage.egg-info/requires.txt +15 -0
- dismessage-0.4.0/dismessage.egg-info/top_level.txt +1 -0
- dismessage-0.4.0/pyproject.toml +38 -0
- dismessage-0.4.0/setup.cfg +4 -0
dismessage-0.4.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 F² Cyanic
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dismessage
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Pixel-perfect Discord message & friend request renderer
|
|
5
|
+
Author: F² Cyanic
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: discord,screenshot,fake,message,render,image
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Provides-Extra: render
|
|
20
|
+
Requires-Dist: playwright>=1.40; extra == "render"
|
|
21
|
+
Provides-Extra: fetch
|
|
22
|
+
Requires-Dist: httpx>=0.25; extra == "fetch"
|
|
23
|
+
Provides-Extra: lite
|
|
24
|
+
Requires-Dist: Pillow>=10.0; extra == "lite"
|
|
25
|
+
Requires-Dist: httpx>=0.25; extra == "lite"
|
|
26
|
+
Provides-Extra: all
|
|
27
|
+
Requires-Dist: playwright>=1.40; extra == "all"
|
|
28
|
+
Requires-Dist: httpx>=0.25; extra == "all"
|
|
29
|
+
Requires-Dist: Pillow>=10.0; extra == "all"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# DisMessage
|
|
33
|
+
|
|
34
|
+
Pixel-perfect Discord message & friend request renderer.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
pip install dismessage[all]
|
|
39
|
+
python -m playwright install chromium
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
from dismessage import Author, Message, render_png
|
|
44
|
+
from datetime import datetime, timezone
|
|
45
|
+
|
|
46
|
+
msg = Message(
|
|
47
|
+
author=Author(
|
|
48
|
+
id="123", name="User",
|
|
49
|
+
avatar_url="https://cdn.discordapp.com/avatars/123/abc.webp?size=80",
|
|
50
|
+
),
|
|
51
|
+
content="hello **world**",
|
|
52
|
+
timestamp=datetime.now(timezone.utc),
|
|
53
|
+
)
|
|
54
|
+
render_png([msg], "out.png")
|
|
55
|
+
|
|
56
|
+
See GitHub for full docs.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# DisMessage
|
|
2
|
+
|
|
3
|
+
Pixel-perfect Discord message & friend request renderer.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
pip install dismessage[all]
|
|
8
|
+
python -m playwright install chromium
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
from dismessage import Author, Message, render_png
|
|
13
|
+
from datetime import datetime, timezone
|
|
14
|
+
|
|
15
|
+
msg = Message(
|
|
16
|
+
author=Author(
|
|
17
|
+
id="123", name="User",
|
|
18
|
+
avatar_url="https://cdn.discordapp.com/avatars/123/abc.webp?size=80",
|
|
19
|
+
),
|
|
20
|
+
content="hello **world**",
|
|
21
|
+
timestamp=datetime.now(timezone.utc),
|
|
22
|
+
)
|
|
23
|
+
render_png([msg], "out.png")
|
|
24
|
+
|
|
25
|
+
See GitHub for full docs.
|