Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
This is a command line interface and python web-api wrapper for mail.tm.
The api is documented here.
xclip
or xsel
for clipboard copying.
A browser to open incoming html emails.
pip install pymailtm
python -m venv .venv
source .venv/bin/activate
pip install pymailtm
The utility can be called with:
pymailtm
Remember that if you are in a virtual env you need to activate it first.
By default the command recover the last used account, copy it to the clipboard and wait for a new message to arrive: when it does, it's opened in the browser in a quick&dirty html view.
Exit the waiting loop by pressing Ctrl+c
.
Calling the utility with the flag -l
will print the account credentials, open
in the browser the mail.tm client and exit.
The flag -n
can be used to force the creation of a new account.
This is conceived as an insecure, fast throwaway temp mail account generator.
DO NOT use it with sensitive data.
Mails that arrive while the utility is running will be saved in plain text
files in the system temporary folder (probably /tmp/
) so that they can be
opened by the browser.
The last used account's data and credentials will be saved in
plain text in ~/.pymailtm
.
pip install invoke poetry
Now clone the git repo:
git clone git@github.com:CarloDePieri/pymailtm.git
cd pymailtm
inv install
This will try to create a virtualenv based on python3.7
and install there all
project's dependencies. If a different python version is preferred, it can be
selected by specifying the --python
(-p
) flag like this:
inv install -p python3.8
The script can now be run directly by launching inv run
. It also accepts flags,
for example:
inv run -n
The test suite can be run with commands:
inv test # run the test suite
inv test --full # run even tests that requires a graphical environment
inv test-spec # run the tests while showing the output as a spec document
inv test-cov # run the tests suite and produce a coverage report
Tests take advantage of vcrpy to cache network requests and responses. If you need to clear this cache run:
inv clear-cassettes
To test the github workflow with act:
inv act-dev # test the dev workflow
inv act-dev -c shell # open a shell in the act container (the above must fail first!)
inv act-dev -c clean # stop and delete a failed act container
FAQs
A python web api wrapper and command line client for mail.tm.
We found that pymailtm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.