Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1997cui/envelope
A small tool to track your US plain letter
https://github.com/1997cui/envelope
usps usps-api
Last synced: 4 days 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T19:46:08.000Z (2 months ago)
- Last Synced: 2024-12-16T15:41:12.341Z (11 days ago)
- Topics: usps, usps-api
- Language: Python
- Homepage: https://slu.t.cuitian1.com/envelope/
- Size: 119 KB
- Stars: 93
- Watchers: 3
- Forks: 24
- Open Issues: 2
-
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