https://github.com/1997cui/envelope
A small tool to track your US plain letter
https://github.com/1997cui/envelope
usps usps-api
Last synced: 3 months ago
JSON representation
A small tool to track your US plain letter
- Host: GitHub
- URL: https://github.com/1997cui/envelope
- Owner: 1997cui
- License: agpl-3.0
- Created: 2023-03-26T23:04:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-04T06:03:12.000Z (12 months ago)
- Last Synced: 2025-09-11T08:20:49.886Z (9 months ago)
- Topics: usps, usps-api
- Language: Python
- Homepage: https://envelopetracker.com
- Size: 67.4 KB
- Stars: 127
- Watchers: 5
- Forks: 31
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Envelope
---
A lightweight web service to generate USPS first class mail envelope with a traceable barcode.
## Features
1. Generate a ready-to-print envelope pdf and html
2. Support both #10 Envelope and 4in*2in label
3. The envelope has a traceable barcode
4. Show status of your first class mail without certify!
## Install
### Generate config
- Move `app/config.py.example` to `app/config.py`
- config your USPS Web Tools API username, Business Gateway username and Password [Guide](https://blog.ctyi.me/%E7%94%9F%E6%B4%BB/2021/06/03/USPS_IV_MTR.html)
- config a Flask session key
- Config your redis server address
### Docker
- Modify the docker file to meet your need
- `CMD ["gunicorn", "app:app", "--workers", "4", "--worker-class", "app.ConfigurableWorker", "--bind", "0.0.0.0:8080", "--forwarded-allow-ips",""]`
- Define the path and the port
- `docker-compose up -d`
### Enjoy
- Open `http://localhost:8080/envelope/` in your browser