Skip to content

Commit a57be50

Browse files
author
Ricky White
authored
Merge pull request #2 from DelineaXPM/delineaKrehl-DeepRebrand
Rebrand the module from thycotic to delinea
2 parents 9fed6ad + ca427ed commit a57be50

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Delinea Secret Server Python SDK
22

3-
![PyPI Version](https://img.shields.io/pypi/v/python-tss-sdk) ![License](https://img.shields.io/github/license/delinea/python-tss-sdk) ![Python Versions](https://img.shields.io/pypi/pyversions/python-tss-sdk)
3+
![PyPI Version](https://img.shields.io/pypi/v/python-tss-sdk) ![License](https://img.shields.io/github/license/DelineaXPM/python-tss-sdk) ![Python Versions](https://img.shields.io/pypi/pyversions/python-tss-sdk)
44

55
The [Delinea](https://delinea.com/) [Secret Server](https://delinea.com/products/secret-server/) Python SDK contains classes that interact with Secret Server via the REST API.
66

@@ -25,7 +25,7 @@ There are three ways in which you can authorize the `SecretServer` and `SecretSe
2525
If using traditional `username` and `password` authentication to log in to your Secret Server, you can pass the `PasswordGrantAuthorizer` into the `SecretServer` class at instantiation. The `PasswordGrantAuthorizer` requires a `base_url`, `username`, and `password`. It optionally takes a `token_path_uri`, but defaults to `/oauth2/token`.
2626

2727
```python
28-
from thycotic.secrets.server import PasswordGrantAuthorizer
28+
from delinea.secrets.server import PasswordGrantAuthorizer
2929

3030
authorizer = PasswordGrantAuthorizer("https://hostname/SecretServer", "myusername", "mypassword")
3131
```
@@ -35,7 +35,7 @@ authorizer = PasswordGrantAuthorizer("https://hostname/SecretServer", "myusernam
3535
To use a domain credential, use the `DomainPasswordGrantAuthorizer`. It requires a `base_url`, `username`, `domain`, and `password`. It optionally takes a `token_path_uri`, but defaults to `/oauth2/token`.
3636

3737
```python
38-
from thycotic.secrets.server import DomainPasswordGrantAuthorizer
38+
from delinea.secrets.server import DomainPasswordGrantAuthorizer
3939

4040
authorizer = DomainPasswordGrantAuthorizer("https://hostname/SecretServer", "myusername", "mydomain", "mypassword")
4141
```
@@ -45,7 +45,7 @@ authorizer = DomainPasswordGrantAuthorizer("https://hostname/SecretServer", "myu
4545
If you already have an `access_token`, you can pass directly via the `AccessTokenAuthorizer`.
4646

4747
```python
48-
from thycotic.secrets.server import AccessTokenAuthorizer
48+
from delinea.secrets.server import AccessTokenAuthorizer
4949

5050
authorizer = AccessTokenAuthorizer("AgJ1slfZsEng9bKsssB-tic0Kh8I...")
5151
```
@@ -61,7 +61,7 @@ The SDK API requires an `Authorizer` and a `tenant`.
6161
Instantiate the `SecretServerCloud` class with `tenant` and an `Authorizer` (optionally include a `tld`). To retrieve a secret, pass an integer `id` to `get_secret()` which will return the secret as a JSON encoded string.
6262

6363
```python
64-
from thycotic.secrets.server import SecretServerCloud
64+
from delinea.secrets.server import SecretServerCloud
6565

6666
secret_server = SecretServerCloud("mytenant", authorizer)
6767

@@ -79,7 +79,7 @@ The SDK API also contains a `Secret` `@dataclass` containing a subset of the Sec
7979
To instantiate the `SecretServer` class, it requires a `base_url`, an `Authorizer` object (see above), and an optional `api_path_uri` (defaults to `"/api/v1"`)
8080

8181
```python
82-
from thycotic.secrets.server import SecretServer
82+
from delinea.secrets.server import SecretServer
8383

8484
secret_server = SecretServer("https://hostname/SecretServer", my_authorizer)
8585
```
@@ -95,7 +95,7 @@ print(f"username: {secret.fields['username'].value}\npassword: {secret.fields['p
9595
Alternatively, you can use pass the json to `ServerSecret` which returns a `dataclass` object representation of the secret:
9696

9797
```shell
98-
from thycotic.secrets.server import ServerSecret
98+
from delinea.secrets.server import ServerSecret
9999

100100
secret = ServerSecret(**secret_server.get_secret(1))
101101

@@ -124,7 +124,7 @@ First, ensure Python is in `$PATH`, then run:
124124

125125
```shell
126126
# Clone the repo
127-
git clone https://github.com/thycotic/python-tss-sdk
127+
git clone https://github.com/DelineaXPM/python-tss-sdk
128128
cd python-tss-sdk
129129

130130
# Create a virtual environment

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import pytest
33
from dotenv import load_dotenv
4-
from thycotic.secrets.server import PasswordGrantAuthorizer, SecretServerCloud
4+
from delinea.secrets.server import PasswordGrantAuthorizer, SecretServerCloud
55

66
load_dotenv()
77

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from thycotic.secrets.server import (
3+
from delinea.secrets.server import (
44
SecretServerCloud,
55
SecretServerError,
66
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["flit_core >=2,<4"]
33
build-backend = "flit_core.buildapi"
44

55
[tool.flit.metadata]
6-
module = "thycotic"
6+
module = "delinea"
77
author = "Adam Migus"
88
author-email = "adam@migus.org"
99
classifiers = [

tests/test_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from thycotic.secrets.server import (
3+
from delinea.secrets.server import (
44
AccessTokenAuthorizer,
55
SecretServer,
66
SecretServerClientError,

0 commit comments

Comments
 (0)