An API Client for the Neon API.
Low maintenance activity. Last release 22 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install neon-apineon_api: Python API wrapper for the Neon API.
neon_api is a Python wrapper designed to simplify interactions with the Neon API. It provides a convenient way for developers to integrate their Python applications with the Neon platform, offering methods to manage API keys, projects, branches, databases, endpoints, roles, and operations programmatically.
With neon_api, you can automate tasks, streamline workflows, and build powerful integrations with ease.
Installation
Installation of neon_api is easy, with pip:
$ pip install neon-api
Usage
from neon_api import NeonAPI
# Initialize the client.
neon = NeonAPI(api_key='your_api_key')
Documentation is available on ReadTheDocs.
Remember that you should never expose your api_key and handle it carefully since it gives access to sensitive data. It's better to set it as an environment variable (e.g. NEON_API_KEY + accompanying neon_api.from_environ()).
Methods of the NeonAPI class:
me(): Returns the current user.
Manage API keys:
api_keys(): Returns a list of API keys.api_key_create(**json): Creates an API key.api_key_delete(key_id): Deletes a given API key.
Manage projects:
projects(): Returns a list of projects.project(project_id): Returns a specific project.project_create(project_id, **json): Creates a new project.project_update(project_id, **json): Updates a given project.project_delete(project_id): Deletes a given project.project_permissions(project_id): Returns a list of permissions for a given project.project_permissions_grant(project_id, **json): Grant permissions to a given project.