
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A sophisticated mock HTTP server for development and testing. Imitatus (Latin for "imitation") provides a powerful way to simulate HTTP services with precision and flexibility.
# Install
git clone https://github.com/serkanaltuntas/imitatus.git
cd imitatus
pip install -r requirements.txt
# Run
python -m imitatus.server --port 8000
python -m imitatus.server
curl -X POST http://localhost:8000/api/login \
-H "Content-Type: application/json" \
-d '{"username": "admin", "password": "password"}'
curl http://localhost:8000/api/items \
-H "Authorization: Bearer your-token-here"
POST /api/login
: Get authentication token{
"username": "admin",
"password": "password"
}
GET /api/items
: List all itemsPOST /api/items
: Create itemGET /api/items/{id}
: Get specific itemPUT /api/items/{id}
: Full updatePATCH /api/items/{id}
: Partial updateDELETE /api/items/{id}
: Delete itemGET /debug/vars
: System state and metricsOPTIONS /api/items
: Available methods and API infoImitatus is designed to have zero production dependencies. It uses only Python's standard library components for all core functionality. This design choice provides several benefits:
For development and testing, we use several high-quality tools:
# Install development dependencies
pip install -r requirements-dev.txt
# Install testing dependencies
pip install -r requirements-test.txt
See requirements-dev.txt
and requirements-test.txt
for the complete list of development and testing dependencies.
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with precision by Serkan Altuntas
FAQs
A zero-dependency, sophisticated mock HTTP server for development and testing
We found that imitatus 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.