celomem 1.0.0__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.
Potentially problematic release.
This version of celomem might be problematic. Click here for more details.
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: celomem
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: End-to-end encrypted file sharing through your own server: share links, upload links, a file-manager mount
|
|
5
|
+
Author: Celal Türkmen
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/celaltrk/celomem
|
|
8
|
+
Project-URL: Documentation, https://github.com/celaltrk/celomem#readme
|
|
9
|
+
Project-URL: Issues, https://github.com/celaltrk/celomem/issues
|
|
10
|
+
Keywords: encryption,file-sharing,e2ee,self-hosted,cli
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
13
|
+
Classifier: Operating System :: POSIX
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Communications :: File Sharing
|
|
16
|
+
Classifier: Topic :: Security :: Cryptography
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: cryptography>=41
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# celomem
|
|
24
|
+
|
|
25
|
+
End-to-end encrypted file sharing through **your own server**. This package is
|
|
26
|
+
the command-line client; the server (share pages and API, deployable to Vercel
|
|
27
|
+
or with Docker) is in the same repository:
|
|
28
|
+
**https://github.com/celaltrk/celomem**.
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
$ celomem share contract contract.pdf annex.pdf --ttl 2
|
|
32
|
+
Encrypting and uploading 2 files (1.2 MB) to contract/
|
|
33
|
+
✓ contract.pdf 1.1 MB
|
|
34
|
+
✓ annex.pdf 96.0 KB
|
|
35
|
+
Link t73fdc: 2 opens, 30 min access after opening
|
|
36
|
+
https://files.example.com/celomem/contract?token=t73fdcktuhw_aJavwlrHBA#oT01Bkkl…
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Files and their names are encrypted on your computer (AES-256-GCM) before they
|
|
40
|
+
are uploaded. The key is in the link's `#fragment`, which browsers never send to
|
|
41
|
+
the server; recipients decrypt in the browser.
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
pipx install celomem # or: pip install --user celomem
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Python 3.9+ and the `cryptography` package (installed with it).
|
|
50
|
+
|
|
51
|
+
## Start
|
|
52
|
+
|
|
53
|
+
**New server:** `celomem setup` walks you through the database, the storage
|
|
54
|
+
bucket and email, checks each, and writes the server's environment file. The
|
|
55
|
+
[repository's README](https://github.com/celaltrk/celomem#set-up-your-server)
|
|
56
|
+
has the whole procedure. Then connect:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
celomem connect https://files.example.com
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Another computer:** install, copy `~/.celomem/id_ed25519` from your first
|
|
63
|
+
computer (keep it mode 600), and run `celomem connect` with the same address.
|
|
64
|
+
Any computer with that file can manage all your shares.
|
|
65
|
+
|
|
66
|
+
## Commands
|
|
67
|
+
|
|
68
|
+
**Sharing and links**
|
|
69
|
+
|
|
70
|
+
| Command | What it does |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| `celomem share SHARE [FILE…]` | A new link for a share. Creates the share first (empty or with the files) if it doesn't exist; files given for an existing share are added (`-f` replaces existing ones) |
|
|
73
|
+
| `celomem create SHARE FILE…` | Creates a share with files and prints a link; refuses a share that already exists |
|
|
74
|
+
| `celomem quickshare FILE…` | Upload and link in one step, into a new share with a random name. **It deletes itself** `--timeout` after the first download starts, or when the link expires (default 7 days) if nobody downloads it. `--dir SHARE[/SUB]` adds to that share instead (which is never deleted) |
|
|
75
|
+
| `celomem ask [FOLDER]` | The reverse: prints an upload link (and QR code). Whatever someone uploads there is encrypted in their browser and saved into `FOLDER`. Works until the command ends |
|
|
76
|
+
| `celomem link SHARE` | Every link: uses, window, source, status, expiry, last opened (`link SHARE ls --json`) |
|
|
77
|
+
| `celomem link SHARE add` | A new link (+ QR), with the link options below |
|
|
78
|
+
| `celomem link SHARE edit LINK… \| --all` | `--ttl N` (total opens, counting used ones), `--expires 30d` or `never`, `--timeout 2h` (for visitors opening it from now on) |
|
|
79
|
+
| `celomem link SHARE revoke LINK… \| --all` | Turns links off now (also ends open sessions); they stay listed |
|
|
80
|
+
| `celomem link SHARE delete LINK… \| --all` | Removes links completely; their entries in `log` stay |
|
|
81
|
+
| `celomem link SHARE show LINK` | Shows a link again, with its QR code |
|
|
82
|
+
| `celomem link SHARE send LINK --to EMAIL [-m TEXT]` | Emails the link (needs email on the server). `--to` again for more people |
|
|
83
|
+
| `celomem toggle-notify SHARE` | An email to you for every new visitor of the share's links (`--on`/`--off`) |
|
|
84
|
+
| `celomem log [SHARE] [-n 50]` | Access log: time, event, IP, location, `source`, device, file |
|
|
85
|
+
|
|
86
|
+
**Files**
|
|
87
|
+
|
|
88
|
+
- `celomem browse [SHARE]`: an `sftp`-like shell: `cd`, `ls`, `tree`, `mkdir`,
|
|
89
|
+
`open`, `get`, `put`, `rm`, `mv`, plus `lcd`/`lls` for the local side. Inside
|
|
90
|
+
a share also `link …`, `notify` and `log`. Tab completes everywhere; `help`.
|
|
91
|
+
- `celomem mount`: your shares as a folder in the file manager (Linux, GVFS),
|
|
92
|
+
until Ctrl-C. Each share is a folder, and a new folder there is a new share.
|
|
93
|
+
Copy in, open, rename, move and delete as usual.
|
|
94
|
+
|
|
95
|
+
**Server and key**
|
|
96
|
+
|
|
97
|
+
| Command | What it does |
|
|
98
|
+
| --- | --- |
|
|
99
|
+
| `celomem setup` | Configures a new server and writes `celomem.env` |
|
|
100
|
+
| `celomem connect URL` | Checks the server and makes it the default |
|
|
101
|
+
| `celomem status` | Checks the key, database, a storage round trip and email |
|
|
102
|
+
| `celomem keygen` / `pubkey` | Creates the key / prints the public key for `CELOMEM_PUBLIC_KEY` |
|
|
103
|
+
| `celomem migrate-storage` | Moves files from Vercel Blob to an S3 bucket, keeping every link |
|
|
104
|
+
| `celomem completion bash --install` | Tab completion for bash |
|
|
105
|
+
|
|
106
|
+
### Link options (`share`, `create`, `quickshare`, `link add`)
|
|
107
|
+
|
|
108
|
+
| Flag | Default | Meaning |
|
|
109
|
+
| --- | --- | --- |
|
|
110
|
+
| `--ttl N` | 1 | How many visitors can open the link |
|
|
111
|
+
| `--timeout 2h` | 30 min | How long a visitor can download after opening it: minutes, or `90m`, `12h`, `30d`, `2w` (at most 366 days) |
|
|
112
|
+
| `--source TEXT` | none | Adds `&source=TEXT` to the link, recorded with each visit |
|
|
113
|
+
| `--expires 7d` | never | The link stops working after this long, even if unused |
|
|
114
|
+
| `--no-ip-reuse` | off | Every browser uses up an open, even several on the same IP |
|
|
115
|
+
|
|
116
|
+
Link previews (Slack, WhatsApp, iMessage…) don't use up opens. Refreshing, or
|
|
117
|
+
opening the link in a second browser on the same IP, doesn't either.
|
|
118
|
+
|
|
119
|
+
Every command that prints a link also prints a QR code, to stderr, so
|
|
120
|
+
`celomem quickshare a.pdf | pbcopy` copies just the link. `--no-qr` turns it off.
|
|
121
|
+
|
|
122
|
+
The server comes from `--server URL`, else `$CELOMEM_SERVER`, else
|
|
123
|
+
`~/.celomem/config.json` (which `connect` writes). `$CELOMEM_HOME` moves
|
|
124
|
+
`~/.celomem`.
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
MIT
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
celomem.py,sha256=XWCwCy7Y3LIfGHR9jxXiR3QOttrZsrP39ONoUeDU5sE,158765
|
|
2
|
+
celomem-1.0.0.dist-info/licenses/LICENSE,sha256=iU9_1FXX1PaMNayyqW05ICWtxUkLA36830_xekKzDfI,1071
|
|
3
|
+
celomem-1.0.0.dist-info/METADATA,sha256=hlDxxpMG490IKaZA6AF8sqwYYaYBIwglR58juFiP2go,6283
|
|
4
|
+
celomem-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
celomem-1.0.0.dist-info/entry_points.txt,sha256=oeN_XL3gqrKYlMUumraK3syCK5Jl5tnCZmyQ3FM_K0M,41
|
|
6
|
+
celomem-1.0.0.dist-info/top_level.txt,sha256=LmogjGyLfLGjR97sfnn_sGmkd82PZ8rqkA7m2QDuxbw,8
|
|
7
|
+
celomem-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Celal Türkmen
|
|
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 @@
|
|
|
1
|
+
celomem
|