neo4j-labs / aura-cli Goto Github PK
View Code? Open in Web Editor NEWA command line interface for the Aura API, written with Python click.
License: Apache License 2.0
A command line interface for the Aura API, written with Python click.
License: Apache License 2.0
Environment
Steps to reproduce
pip install aura-cli
aura config
File "/Users/jgiffard/Projects/aura_cli_python/venv/bin/aura", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1685, in invoke
super().invoke(ctx)
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/click/decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/aura.py", line 13, in cli
ctx.obj = CLIConfig()
^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 14, in __init__
self.config = self.load_config()
^^^^^^^^^^^^^^^^^^
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 24, in load_config
self.validate_config(config)
File "/Users/jgiffard/Projects/aura_cli_python/venv/lib/python3.11/site-packages/aura/config_repository.py", line 115, in validate_config
self.config["DEFAULTS"] = {}
^^^^^^^^^^^
AttributeError: 'CLIConfig' object has no attribute 'config'
It would be useful to notify the end user that there is a new version of aura-cli and how to upgrade.
We would do this in a similar way to pip, where it checks for this on each execution and displays a message if there's a new version along with how to upgrade.
Using Aura API with curl command works with the following command
curl --insecure --request GET "https://api.neo4j.io/v1beta3/instances" ^
More? --header "accept: application/json" ^
More? --header "Authorization: Bearer %bearer_token%" -vvv
where
C:>aura tenants list --raw --include
Error: Connection error
Often the first few queries I execute after --wait
fail with server errors related to routing. Perhaps once Aura reports an instance as being available, the CLI could use the driver's verify_connectivity()
function to confirm the server is read for queries.
If aura instance create
is called with the --wait
option. The output is missing password
and username
fields. It looks like this:
{
"cloud_provider": "gcp",
"connection_url": "neo4j+s://*********.databases.neo4j.io",
"id": "*********",
"memory": "8GB",
"metrics_integration_url": "https://customer-metrics-api.neo4j.io/api/v1/*********/*********/metrics",
"name": "*********",
"status": "running",
"storage": "16GB",
"tenant_id": "*********",
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.