-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ In this repository, we develop a python api to generate atlas entities and impor | |
## Quick start | ||
|
||
### Create a client to connect to an Atlas instance | ||
|
||
```python | ||
from atlas_client.client import Atlas | ||
from atlaspyapi.client import Atlas | ||
# login with your token | ||
hostname = "https://atlas.lab.sspcloud.fr" | ||
port = 443 | ||
|
@@ -19,8 +20,9 @@ atlas_client = Atlas(hostname, port, oidc_token=oidc_token) | |
atlas_client = Atlas(hostname, port, username='',password='') | ||
``` | ||
### Search entity and return entity's guid | ||
|
||
```python | ||
from atlas_client.entity_search.EntityFinder import EntityFinder | ||
from atlaspyapi.entity_search.EntityFinder import EntityFinder | ||
|
||
finder = EntityFinder(atlas_client) | ||
search_result = finder.search_full_text("aws_s3_bucket", "test") | ||
|
@@ -40,8 +42,9 @@ for guid in guid_list: | |
### Atlas entities CRUD | ||
|
||
#### S3 entities | ||
|
||
```python | ||
from atlas_client.entity_management.s3.S3BucketManager import S3BucketManager | ||
from atlaspyapi.entity_management.s3.S3BucketManager import S3BucketManager | ||
|
||
s3_bucket_manager = S3BucketManager(atlas_client) | ||
|
||
|
@@ -85,8 +88,9 @@ hive_column.create_entity("stock_name", "string", "[email protected] | |
|
||
### Generate atlas entity json file | ||
If you want to use the Atlas rest api by yourself, we also provide you the support of json file generation | ||
|
||
```python | ||
from atlas_client.entity_source_generation.S3BucketEntityGenerator import S3BucketEntityGenerator | ||
from atlaspyapi.entity_source_generation.S3BucketEntityGenerator import S3BucketEntityGenerator | ||
name = "test" | ||
domain = "s3://test.org" | ||
qualified_name = "s3://test.org/test1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "atlaspyapi" | ||
version = "0.2.2" | ||
version = "0.2.3" | ||
description = "" | ||
authors = ["pengfei <[email protected]>"] | ||
keywords = ["keyword", "another_keyword"] | ||
|
@@ -19,7 +19,6 @@ Jinja2 = "^3.0.3" | |
six = "^1.16.0" | ||
click = "^8.1.2" | ||
requests = "^2.27.1" | ||
twine = "^4.0.0" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters