ArgoCD API management CLI and wrapper package
Project description
ngen-argoapi
ArgoCD API management CLI and wrapper package. Designed to simplify ArgoCD interactions and CI/CD integration.
Installation
pip install ngen-argoapi
Usage
Login
Login to your ArgoCD instance. This will save your credentials securely (insecure mode by default for internal instances).
argoapi login
Application Management
List all applications with sync/health status:
argoapi app list
Get application details (JSON output):
argoapi app get <application-name>
Show diff for out-of-sync resources:
argoapi app diff <application-name>
argoapi app diff <application-name> --compact
argoapi app diff <application-name> --inline
Refresh an application:
argoapi app refresh <application-name>
argoapi app refresh <application-name> --hard
Server Mode
Start the ArgoAPI server with Swagger UI:
argoapi server
argoapi server --host 0.0.0.0 --port 8899
API endpoints available at:
- Swagger UI:
http://localhost:8899/docs - ReDoc:
http://localhost:8899/redoc - Health Check:
http://localhost:8899/health
Health Check Endpoint
The /health endpoint returns:
{
"status": "healthy",
"version": "0.1.8",
"timestamp": "2024-12-25T10:30:00.000000Z",
"service": "argoapi",
"argocd_connected": true,
"token": {
"valid": true,
"username": "admin",
"error": null
}
}
Status values:
healthy: ArgoCD connected and token validdegraded: ArgoCD connected but token invalid/expired
Environment Variables
| Variable | Description |
|---|---|
ARGOAPI_VERSION |
Override version reported by API (optional) |
Features
- Insecure by Default: Automatically handles SSL verification for internal ArgoCD instances.
- Token Management: Auto-renews or manages session tokens.
- Easy CLI: Simple command structure.
- Diff Support: View resource differences in compact or inline format.
- Server Mode: REST API with Swagger documentation.
- Health Check: Kubernetes-ready health check endpoint.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ngen_argoapi-0.1.12.tar.gz.
File metadata
- Download URL: ngen_argoapi-0.1.12.tar.gz
- Upload date:
- Size: 28.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c839de558cf1aabfd63734d2db7da3bd9095bfc4bdea77c91aa72586b1371f60
|
|
| MD5 |
cb428d86e5ab3991e5f94e049414f594
|
|
| BLAKE2b-256 |
2ffd2c79a8229b5f625a548febff1158b5084ac64455ef94bba20c56add50c6c
|
File details
Details for the file ngen_argoapi-0.1.12-py3-none-any.whl.
File metadata
- Download URL: ngen_argoapi-0.1.12-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a118a957fa4ced692b35e4e5cb84312d49871ae6784809df99365ea24fc8f964
|
|
| MD5 |
bc8043279d026ba43c81cbfc1ac2f763
|
|
| BLAKE2b-256 |
bba462efde29e53212a5916a1e767e06b3c76b71a93a7f43f60ca385bb782fb6
|