This project will show you how to create a Terminal Email Client to read, reply, delete and compose emails.
- Python v3.x
You'll need the following values:
NYLAS_API_KEY =
NYLAS_API_URI =
GRANT_ID =
Add the above values to a new .env
file:
$ touch .env # Then add your env variables
$ pip3 install textual[dev]
# pip3 install beautifulsoup4
Clone the repository. Go to your terminal and type:
$ cd terminal_email_client
$ python3 email_client.py
pip install textual-email-client
Once installed, you will need to create an .env where the package was installed, for this you can use:
pip show text-email-client
Copy the location and then do:
nano /opt/homebrew/lib/python3.12/site-packages/.env
Using the the following values (Fill them with your Nylas information):
NYLAS_API_KEY =
NYLAS_API_URI =
GRANT_ID =
Once installed you can call it straight from your terminal as:
emailClient
Visit our Nylas Python SDK documentation to learn more.