Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
pengfei99 committed May 31, 2022
1 parent 8506ddc commit 2ff8931
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
atlaspyapi.egg-info/
build/
dist/
atlas_client/test/
atlas_client/__pycache__/
atlaspyapi/test/
atlaspyapi/__pycache__/
.idea/
log
my_secrets
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand All @@ -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)

Expand Down Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
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"]
Expand All @@ -19,7 +19,6 @@ Jinja2 = "^3.0.3"
six = "^1.16.0"
click = "^8.1.2"
requests = "^2.27.1"
twine = "^4.0.0"



Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import setuptools

from atlas_client import __version__ as version
from atlaspyapi import __version__ as version

here = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, here)
Expand All @@ -30,7 +30,7 @@
long_description_content_type="text/markdown",
url="https://github.com/pengfei99/AtlasPyApi",
# we need to indicate excitement which package will be published, otherwise import will raise module name not found
packages=setuptools.find_packages(include=['atlas_client', 'atlas_client.*']),
packages=setuptools.find_packages(include=['atlaspyapi', 'atlaspyapi.*']),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down

0 comments on commit 2ff8931

Please sign in to comment.