Google Drive-synchronized floating Post-it memo pad for Windows, macOS, and Linux
Project description
Memo-Bot v1.0 ๐
๊ตฌ๊ธ ๋๋ผ์ด๋ธ ๊ธฐ๋ฐ์ ์๋ฒฝํ ๋๊ธฐํ๋๋ ํฌ๋ก์ค ํ๋ซํผ ํฌ์คํธ์ ๋ฉ๋ชจ์ฅ์ ๋๋ค. ์๋๋ก์ด๋(Flutter)์ ๋ฐ์คํฌํฑ(Windows, macOS, Linux - Python/PyWebView) ํ๊ฒฝ์ ์ง์ํ๋ฉฐ, ์ฌ์ฉ์์ ๊ตฌ๊ธ ๋๋ผ์ด๋ธ **์จ๊ฒจ์ง ์ฑ ํด๋ (Application Data Folder)**๋ฅผ ์ด์ฉํด ๋ณด์์ด ๋งค์ฐ ๋ฐ์ด๋๊ณ ๊น๋ํ ๋๊ธฐํ๋ฅผ ์ํํฉ๋๋ค.
๐จ ๊ธฐ์ ์คํ ๋ฐ ํน์ง
- Desktop Client: Python + PyWebView (HTML/JS/CSS). OS ๋ด์ฅ ์น๋ทฐ๋ฅผ ์ฌ์ฉํ๋ฏ๋ก ๋ฐฐํฌ ํ์ผ ๋ฐ ๋ฉ๋ชจ๋ฆฌ ์๋ชจ๊ฐ ์ต์ํ๋ฉ๋๋ค.
- Mobile Client (Android): Flutter (Material 3 ๋คํฌ ๋ชจ๋). ๋ชจ๋ํ๊ณ ์ ๋ คํ ํฌ์คํธ์ ๋ฆฌ์คํธ ๋ฐ ํธ์ง ์ธํฐํ์ด์ค ์ ๊ณต.
- Sync Engine: Google Drive AppData API. ์ฌ์ฉ์์ ํ์ผ ๋ชฉ๋ก์ ๋
ธ์ถ๋์ง ์๋ ๊ณ ์ ์ฑ ์ ์ฅ์๋ฅผ ์ฌ์ฉํ๊ณ , ํ์ผ์
appProperties๋ฉํ๋ฐ์ดํฐ๋ฅผ ์บ์ฑํ์ฌ ํธ๋ํฝ ์๋ชจ๊ฐ ๋งค์ฐ ์ ๊ณ ๋ฐ์์ด ๋น ๋ฅธ ๋๊ธฐํ๋ฅผ ์ง์ํฉ๋๋ค.
๐ ๋ฐ์ดํฐ ์ ์ฅ ๊ฒฝ๋ก ๋ฐ ํ์ผ ํฌ๋งท
๋ฉ๋ชจ๋ฅผ ์์ฑํ๊ณ ์ ์ฅํ๋ฉด ๊ฐ ๋ฉ๋ชจ๋ ๋ก์ปฌ ์ปดํจํฐ์ ๊ฐ๋ณ JSON ํ์ผ ํํ๋ก ์ ์ฅ๋ฉ๋๋ค.
1. ๋ก์ปฌ ์ ์ฅ ๊ฒฝ๋ก
- Windows:
C:\Users\<์ฌ์ฉ์๋ช >\.memobot\notes\ - macOS / Linux:
~/.memobot/notes/
2. ํ์ผ ํ์ ๋ฐ ์ด๋ฆ
- ๊ฐ ๋ฉ๋ชจ๋น
note_<๊ณ ์ ID>.jsonํ์์ผ๋ก ์ ์ฅ๋ฉ๋๋ค. (์:note_a1b2c3d4.json)
3. JSON ๋ฐ์ดํฐ ๊ตฌ์กฐ ์์
๋ฉ๋ชจ์ ๋ด์ฉ, ์์, ์ขํ ๋ฐ ํฌ๊ธฐ, ํ๊ทธ ์ ๋ณด๋ฟ๋ง ์๋๋ผ ์ฒจ๋ถ๋ ์ด๋ฏธ์ง ๋ฐ์ดํฐ๊น์ง ๋จ์ผ JSON ํ์ผ ๋ด์ ๋ณด๊ดํฉ๋๋ค.
{
"id": "a1b2c3d4-...",
"content": "๋ฉ๋ชจ ๋ด์ฉ์
๋๋ค. #ํ๊ทธ",
"color": "yellow",
"tags": ["ํ๊ทธ"],
"x": 120,
"y": 250,
"width": 250,
"height": 250,
"is_folded": false,
"on_top": true,
"updated_at": "2026-06-04T12:57:08Z",
"image": "data:image/png;base64,iVBORw0KGgoAAA..." // ์ฒจ๋ถ๋ ์ด๋ฏธ์ง ๋ฐ์ดํฐ (Base64 ์ธ์ฝ๋ฉ)
}
[!NOTE] ๊ตฌ๊ธ ๋๋ผ์ด๋ธ ๋๊ธฐํ๊ฐ ์คํ๋๋ฉด ๊ตฌ๊ธ ๋๋ผ์ด๋ธ์ ์จ๊ฒจ์ง ์ฑ ์ ์ฉ ์ ์ฅ์(AppData Folder) ํด๋์๋ ๋ก์ปฌ๊ณผ ๋์ผํ ํ์ผ๋ช ๋ฐ JSON ๋ฐ์ดํฐ ํฌ๋งท์ผ๋ก ์ ์ฅ ๋ฐ ๋๊ธฐํ๋ฉ๋๋ค.
๐ ๊ตฌ๊ธ ๋๋ผ์ด๋ธ API ์ค์ (OAuth 2.0)
์์ชฝ ํ๋ซํผ์์ ๋๊ธฐํ ๊ธฐ๋ฅ์ ํ์ฑํํ๊ธฐ ์ํด Google Cloud Console์์ OAuth 2.0 ์๊ฒฉ ์ฆ๋ช ์ ์ค์ ํด์ผ ํฉ๋๋ค.
-
Google Cloud Console ์ ์:
- Google Cloud Console์ ๊ตฌ๊ธ ๊ณ์ ์ผ๋ก ๋ก๊ทธ์ธํฉ๋๋ค.
- ์ ํ๋ก์ ํธ๋ฅผ ์์ฑํฉ๋๋ค (์:
Memo-Bot).
-
Google Drive API ํ์ฑํ:
- API ๋ฐ ์๋น์ค > ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก ์ด๋ํฉ๋๋ค.
Google Drive API๋ฅผ ๊ฒ์ํ๊ณ ์ฌ์ฉ(Enable) ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
-
OAuth ๋์ ํ๋ฉด ์ค์ :
- API ๋ฐ ์๋น์ค > OAuth ๋์ ํ๋ฉด์ผ๋ก ์ด๋ํฉ๋๋ค.
- User Type์ **์ธ๋ถ(External)**๋ก ์ ํํ๊ณ ์์ฑ์ ๋๋ฆ ๋๋ค.
- ํ์ ์ ๋ณด(์ฑ ์ด๋ฆ, ์ด๋ฉ์ผ ๋ฑ)๋ฅผ ์ ๋ ฅํฉ๋๋ค.
- ๋ฒ์(Scopes) ์ค์ ๋จ๊ณ์์
.../auth/drive.appdata๋ฒ์๋ฅผ ์ถ๊ฐํฉ๋๋ค (๊ตฌ๊ธ ๋๋ผ์ด๋ธ์ ์ฑ ์ ์ฉ ์จ๊ฒจ์ง ํด๋ ์ฝ๊ธฐ/์ฐ๊ธฐ ๊ถํ). - ํ ์คํธ ์ฌ์ฉ์ (Test Users) ๋ฑ๋ก ๋จ๊ณ์์ ๋๊ธฐํ ํ ์คํธ์ ์ฌ์ฉํ ๋ณธ์ธ์ ๊ตฌ๊ธ ์ด๋ฉ์ผ์ ๋ฐ๋์ ์ถ๊ฐํฉ๋๋ค.
[!IMPORTANT] OAuth ๋์ ํ๋ฉด์ ํผ๋ธ๋ฆฌ์ฑ ์ํ๊ฐ ํ ์คํธ(Testing) ๋ชจ๋์ธ ๊ฒฝ์ฐ, ํ ์คํธ ์ฌ์ฉ์๋ก ์ด๋ฉ์ผ ๊ณ์ ์ด ๋ฑ๋ก๋์ด ์์ด์ผ๋ง ๊ตฌ๊ธ ๋ก๊ทธ์ธ์ด ์ ์ ์ฒ๋ฆฌ๋๊ณ ์ฐจ๋จ ์๋ฌ(403 access_denied)๊ฐ ๋ฐ์ํ์ง ์์ต๋๋ค.
- ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด(Credentials) ์์ฑ:
- API ๋ฐ ์๋น์ค > ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด๋ก ์ด๋ํฉ๋๋ค.
- ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด ๋ง๋ค๊ธฐ > OAuth ํด๋ผ์ด์ธํธ ID๋ฅผ ํด๋ฆญํฉ๋๋ค.
- ์ ํ๋ฆฌ์ผ์ด์ ์ ํ์ **๋ฐ์คํฌํฑ ์ฑ(Desktop App)**์ผ๋ก ์ ํํ๊ณ ์ด๋ฆ์ ์ ๋ ฅ ํ ์์ฑํฉ๋๋ค.
- ์์ฑ๋ ํด๋ผ์ด์ธํธ ID์ JSON ํ์ผ์ ๋ค์ด๋ก๋ํฉ๋๋ค.
๐ป ๋ฐ์คํฌํฑ ์ฑ ์คํ ๋ฐ ๋ฐฐํฌ (Python)
1. ์๊ฒฉ ์ฆ๋ช ํ์ผ ๋ฐฐ์น
๋ค์ด๋ก๋๋ฐ์ ํด๋ผ์ด์ธํธ ๋น๋ฐ๋ฒํธ JSON ํ์ผ์ client_secrets.json์ผ๋ก ์ด๋ฆ์ ๋ณ๊ฒฝํ์ฌ ๋ค์ ๊ฒฝ๋ก์ ์ ์ฅํฉ๋๋ค.
- Windows:
C:\Users\<์ฌ์ฉ์๋ช >\.memobot\client_secrets.json - macOS/Linux:
~/.memobot/client_secrets.json
2. ๊ฐ๋ฐ์ ๋ชจ๋ ๋ก์ปฌ ์คํ
cd desktop
# ๊ฐ์ํ๊ฒฝ ์์ฑ ๋ฐ ํ์ฑํ
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# ์์กด์ฑ ํจํค์ง ์ค์น
pip install -e .
# ์ฑ ์คํ
memobot
3. PyPI ๋ฐฐํฌ์ฉ ๋น๋ ๋ฐ ์ ๋ก๋
ํจํค์ง ์ฒญ์, ๋น๋, ์ ๋ก๋๋ฅผ ์ผ๊ด์ ์ผ๋ก ์๋ ์ฒ๋ฆฌํด์ฃผ๋ ๋ฐฐ์น ์คํฌ๋ฆฝํธ๊ฐ ์ ๊ณต๋ฉ๋๋ค:
# Windows ํ๊ฒฝ์์ ๋น๋ ๋ฐ ๋ฐฐํฌ ๋ฐฐ์นํ์ผ ์คํ
./publish_pypi.bat
- ์คํ ์ ๊ธฐ์กด ๋น๋ ์์ ํ์ผ๋ค์ ๋ชจ๋ ์ด๊ธฐํํ๊ณ ,
build๋ฐtwine๋ชจ๋์ ์๋์ผ๋ก ์ต์ ์ค์น/์ ๊ทธ๋ ์ด๋ํ ํ ๋น๋๋ฅผ ์ํํฉ๋๋ค. - ๋น๋ ์๋ฃ ํ [1] TestPyPI ์ ๋ก๋, [2] ๊ณต์ PyPI ์ ๋ก๋, [3] ์ ๋ก๋ ์์ด ๋น๋๋ง ์ํ ์ค ํ๋๋ฅผ ์ ํํด ์งํํ ์ ์์ต๋๋ค.
- ๋ฐฐํฌ ์๋ฃ ์ ์ฌ์ฉ์๋
pip install memobot๋ช ๋ น์ด๋ง์ผ๋ก ํฌ๋ก์ค ํ๋ซํผ(Windows, macOS, Linux) ํ๊ฒฝ์ ์ค์นํ๊ณmemobot๋ช ๋ น์ด๋ก ์ฆ์ ์ฑ์ ์คํํ ์ ์์ต๋๋ค.
๐ฑ ๋ชจ๋ฐ์ผ ์ฑ ์คํ (Flutter Android)
1. Flutter ์์กด์ฑ ๊ตฌ์ฑ
cd mobile
flutter pub get
2. ์๋๋ก์ด๋ ํ๋ซํผ ์ค์
๊ตฌ๊ธ ๋ก๊ทธ์ธ ์ฐ๋์ ์ํด ์๋๋ก์ด๋ ์ฑ์ ํจํค์ง๋ช ๊ณผ ๋๋ฒ๊ทธ ์๋ช ํค(SHA-1)๋ฅผ Google Cloud Console์ ๋์ผ ํ๋ก์ ํธ์ ๋ฑ๋กํด์ผ ํฉ๋๋ค.
- OAuth ํด๋ผ์ด์ธํธ ID ์ถ๊ฐ ์์ฑ:
- Google Cloud Console > ์ฌ์ฉ์ ์ธ์ฆ ์ ๋ณด > OAuth ํด๋ผ์ด์ธํธ ID ์์ฑ.
- ์ ํ์ Android๋ก ์ ํํฉ๋๋ค.
- ํจํค์ง ์ด๋ฆ ์
๋ ฅ (์:
com.example.memobot). - ๊ฐ๋ฐ์ฉ SHA-1 ์ง๋ฌธ ์ธ์ฆ์๋ฅผ ์
๋ ฅํฉ๋๋ค (JDK์
keytool์ ํตํด ์กฐํ ๊ฐ๋ฅ).
- ์๋น์ค ํ์ผ ๋ค์ด๋ก๋:
- ํ์์ ๋ฐ๋ผ Firebase์ ๊ฒฐํฉํ์ฌ ์ฌ์ฉํ ๊ฒฝ์ฐ
google-services.json์mobile/android/app/์๋์ ๋ฐฐ์นํ ์ ์์ผ๋, ๋ณธ ๊ตฌํ์์๋google_sign_inํจํค์ง๊ฐ ํด๋ผ์ด์ธํธ ID๋ฅผ ํตํด ์ง์ ๋์ํ๋ฏ๋ก ์ต์ํ์ ์ค์ ๋ง์ผ๋ก ์๋ ๊ฐ๋ฅํฉ๋๋ค.
- ํ์์ ๋ฐ๋ผ Firebase์ ๊ฒฐํฉํ์ฌ ์ฌ์ฉํ ๊ฒฝ์ฐ
3. ์ฑ ์คํ
flutter run
๐ ๋๊ธฐํ ๋ฐ ์ถฉ๋ ๋ฐฉ์ง ์ธ๋ถ ์ค๊ณ
- Tombstoning (์ํํธ ์ญ์ ): ์ฌ์ฉ์๊ฐ ์ฑ ๋ด์์ ๋ฉ๋ชจ๋ฅผ ์ญ์ ํ๋ฉด ํ์ผ์ด ์ฆ์ ์๊ตฌ ์ญ์ ๋์ง ์๊ณ ๋ด๋ถ ํ๋๊ฐ
is_deleted: true๋ก ๊ฐฑ์ ๋ฉ๋๋ค. ์ด๋ ๋ค๋ฅธ ๋๋ฐ์ด์ค๊ฐ ๋๊ธฐํ ์์ ์ ํด๋น ๋ฉ๋ชจ๋ฅผ ๋ก์ปฌ์์๋ ๋๊ฐ์ด ์ง์์ฃผ๋๋ก ์ ๋ํ๋ฉฐ, ์๋ฒฝํ ์ญ์ ์ ํ๋ฅผ ์ ๊ณตํฉ๋๋ค. - Last-Write-Wins (์ต์ข
์ฐ๊ธฐ ์ฐ์ ): ์คํ๋ผ์ธ ์์ ์ ํฌํจํ์ฌ ์๋ก ๋ค๋ฅธ ๊ธฐ๊ธฐ์์ ๊ฐ์ ํฌ์คํธ์์ ์์ ํ ๊ฒฝ์ฐ, JSON ๋ด๋ถ์
updated_atํ์์คํฌํ๋ฅผ ๊ธฐ์ค์ผ๋ก ๋ ๋ฆ๊ฒ ํธ์ง๋ ์ต์ข ๋ฐ์ดํฐ๋ฅผ ๊ธฐ์ค์ผ๋ก ๋ฎ์ด์๋๋ค.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memobot-1.0.0.tar.gz.
File metadata
- Download URL: memobot-1.0.0.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c72a40400c187c2e23f9e3ef4f3a53aa17a3cae3c80747682c5a08959b79c63
|
|
| MD5 |
a6582ac39e56f07bcb47c9365ec29d8a
|
|
| BLAKE2b-256 |
2044618d54bc6cec1eb97651e9db30a61ef2cebac3976b12a54647060a82ff7e
|
File details
Details for the file memobot-1.0.0-py3-none-any.whl.
File metadata
- Download URL: memobot-1.0.0-py3-none-any.whl
- Upload date:
- Size: 55.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6f4d275a8bf6e79c59bb0f8e81c13f543d3b9e9b51b3f5f3ff1db987125fb2
|
|
| MD5 |
0843d91488c2ad49767b85338d7f15b3
|
|
| BLAKE2b-256 |
9840e122703ae4f8a12499edbb3b99ae5795eb7be02873914cd3a1accc56c10d
|