
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A programmer friendly interface for iRedAdmin (OSE version)
$ virtualenv -p $(which python2.7) venv
$ source venv/bin/activate
(venv)$ python setup.py develop
Before you can start making API calls, you must initialize a connection to the database back end you wish to manage.
To do so simply call the init_db
method with a SQLAlchemy database URL. If you're unclear on how to create one, see: http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls
Example:
import mailapi
mailapi.domain.get_all_domains() # throws a RuntimeError
mailapi.init_db('mysql://scott:tiger@192.168.0.1:3306/vmail') # Initialize the db connection
mailapi.domain.get_all_domains() # works!
I suggest you look at the test cases in ./tests as they illustrate how this package should be used and the expected outcomes.
Easy...
(venv)$ TEST_DB_CONN_STR='mysql://scott:tiger@192.168.0.1:3306/vmail' python setup.py test
Lol, fork me bro
FAQs
An interface to iredadmin
We found that MailApi 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.