Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 1cefa53

Browse files
committed
Renamed library from infisicalpy to infisical
1 parent d809b4a commit 1cefa53

34 files changed

Lines changed: 64 additions & 63 deletions

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Start by cloning the repository:
22
```console
3-
$ git clone https://github.com/Astropilot/infisicalpy
4-
$ cd infisicalpy
3+
$ git clone https://github.com/Infisical/infisical-python
4+
$ cd infisical-python
55
```
66

77
We recommand that you create a virtual environment:

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/Astropilot/infisical-python" target="_blank">
1616
<img src="https://coverage-badge.samuelcolvin.workers.dev/Astropilot/infisical-python.svg" alt="Coverage">
1717
</a>
18-
<a href="https://pypi.org/project/infisicalpy" target="_blank">
19-
<img src="https://img.shields.io/pypi/v/infisicalpy?color=%2334D058&label=pypi%20package" alt="Package version">
18+
<a href="https://pypi.org/project/infisical" target="_blank">
19+
<img src="https://img.shields.io/pypi/v/infisical?color=%2334D058&label=pypi%20package" alt="Package version">
2020
</a>
21-
<a href="https://pypi.org/project/infisicalpy" target="_blank">
22-
<img src="https://img.shields.io/pypi/pyversions/infisicalpy.svg?color=%2334D058" alt="Supported Python versions">
21+
<a href="https://pypi.org/project/infisical" target="_blank">
22+
<img src="https://img.shields.io/pypi/pyversions/infisical.svg?color=%2334D058" alt="Supported Python versions">
2323
</a>
2424
<a href="https://github.com/Astropilot/infisical-python/blob/master/LICENSE">
2525
<img src="https://img.shields.io/github/license/Astropilot/infisical-python" alt="MIT License">
@@ -28,14 +28,14 @@
2828

2929
## Links
3030

31-
- [SDK docs](https://infisical.com/docs/sdk/overview/usage)
31+
- [SDK docs](https://infisical.com/docs/sdks/languages/python)
3232

3333
## Installation
3434

3535
You need Python 3.7+.
3636

3737
```console
38-
$ pip install infisicalpy
38+
$ pip install infisical
3939
```
4040

4141
## Initialization
@@ -45,9 +45,9 @@ If your app only needs to connect to one Infisical project, you should use `infi
4545
Both `connect` and `createConnection` take a parameter `token` and pull in the secrets accessible by that Infisical token.
4646

4747
```py
48-
import infisicalpy
48+
import infisical
4949

50-
infisicalpy.connect("your_infisical_token")
50+
infisical.connect("your_infisical_token")
5151
```
5252

5353
### Options
@@ -60,7 +60,7 @@ infisicalpy.connect("your_infisical_token")
6060
## Access a Secret Value
6161

6262
```py
63-
db_url = infisicalpy.get("DB_URL")
63+
db_url = infisical.get("DB_URL")
6464
```
6565

6666
## Contributing
@@ -69,4 +69,4 @@ See [Contributing documentation](./.github/CONTRIBUTING.md)
6969

7070
## License
7171

72-
`infisicalpy` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
72+
`infisical-python` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Optional
22

3-
from infisicalpy.constants import INFISICAL_URL
3+
from infisical.constants import INFISICAL_URL
44

55
from .client.infisicalclient import InfisicalClient as InfisicalClient
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from infisicalpy.__version__ import __version__
2-
from infisicalpy.utils.http import BaseUrlSession, get_http_client
1+
from infisical.__version__ import __version__
2+
from infisical.utils.http import BaseUrlSession, get_http_client
33

44
USER_AGENT = f"InfisicalPythonSDK/{__version__}"
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from infisicalpy.api.models import GetEncryptedSecretsV2Response
1+
from infisical.api.models import GetEncryptedSecretsV2Response
22
from requests import Session
33

44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from infisicalpy.api.models import GetServiceTokenDetailsResponse
1+
from infisical.api.models import GetServiceTokenDetailsResponse
22
from requests import Session
33

44

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import os
22
from typing import Dict, Optional
33

4-
from infisicalpy.api import create_api_request_with_auth
5-
from infisicalpy.constants import INFISICAL_URL, SERVICE_TOKEN_REGEX
6-
from infisicalpy.exceptions import InfisicalTokenError
7-
from infisicalpy.logger import logger
8-
from infisicalpy.services.secret_service import SecretService
4+
from infisical.api import create_api_request_with_auth
5+
from infisical.constants import INFISICAL_URL, SERVICE_TOKEN_REGEX
6+
from infisical.exceptions import InfisicalTokenError
7+
from infisical.logger import logger
8+
from infisical.services.secret_service import SecretService
99

1010

1111
class InfisicalClient:

0 commit comments

Comments
 (0)