Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenoswarlocks/email_pattern_verification
An webapp to verify email based on their patterns
https://github.com/xenoswarlocks/email_pattern_verification
Last synced: 5 days ago
JSON representation
An webapp to verify email based on their patterns
- Host: GitHub
- URL: https://github.com/xenoswarlocks/email_pattern_verification
- Owner: XenosWarlocks
- License: apache-2.0
- Created: 2025-01-03T13:57:27.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2025-01-03T13:58:38.000Z (7 days ago)
- Last Synced: 2025-01-03T14:45:33.607Z (7 days ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
```bash
python api.py
streamlit run streamlit_app.py
```- Build and run the Docker container:
```bash
docker build -t email-verifier .
docker run -p 5000:5000 email-verifier
```## For cloud deployment:
1. Heroku:
```bash
# Create a Procfile
echo "web: python app.py" > Procfile
# Deploy
heroku create
git push heroku main
```2. Google Cloud Run:
```bash
# Build and deploy
gcloud builds submit --tag gcr.io/PROJECT_ID/email-verifier
gcloud run deploy --image gcr.io/PROJECT_ID/email-verifier --platform managed
```## Directory structure
```
email_verifier/
├── api.py
├── email_verifier.py
├── requirements.txt
├── templates/
│ ├── streamlit_app.py
│ └── index.html
└── Dockerfile
``````bash
# DockerFile
FROM python:3.9-slimWORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txtCOPY . .
EXPOSE 8501
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
``````bash
# Dockerfile.frontend
FROM python:3.9-slimWORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txtCOPY . .
EXPOSE 8501
WORKDIR /app/frontend
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
```
```bash
# Dockerfile.api
FROM python:3.9-slimWORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txtCOPY . .
EXPOSE 5000
CMD ["python", "api.py"]
```
```bash
# docker-compose.yml
version: '3.8'services:
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "5000:5000"
volumes:
- ./logs:/app/logs
environment:
- FLASK_ENV=productionfrontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "8501:8501"
depends_on:
- api
environment:
- API_URL=http://api:5000
```