Use Shufflepy to control Shuffle and Singul
Project description
Shufflepy
Connect to your favorite services with a Singul line of code.
This Library is in an Experimental Phase, released under pypi
Installation
pip install shufflepy
Configuration
from shufflepy import Singul
## If the config is not specified, the library will use `https://shuffler.io` as the default URL. You must specify an apikey.
singul = Singul(
"APIKEY",
url='https://shuffler.io',
)
Requirements
- An API-key for Shuffle
- Having an active authentication for the service you are trying to connect to in Shuffle, whether in your own instance or in the Shuffle cloud: https://shuffler.io. This will be added to the future Shuffle CLI, and is also doable with the App Authentication API.
- If onprem: A Shuffle instance.
Usage
Sample functions below. If none of these match, try to use the shuffle.connect() function to run ANYTHING. By default returns the matching translation standard if available, otherwise the raw output.
singul.cases.create_ticket("jira", title="Title")
singul.communication.send_message("slack", message="Test")
singul.communication.send_message("teams", message="Test")
tickets = singul.cases.list_tickets("jira")
Normal App run control:
singul.run_app(app_id="bc78f35c6c6351b07a09b7aed5d29652", action="repeat_back_to_me", params={"call": "The value to repeat"})
Manual:
# General connect
resp = singul.cases.list_tickets(
app="jira",
org_id=os.environ.get("SHUFFLE_ORG_ID"),
fields=[{
"key": "max-amount",
"value": "10"
}]
)
print(resp)
# General transformer - Transforms from any data into a standard, e.g. "list_tickets"
sourcedata = [{"title": "Tickettitle", "id": "hiya"}]
tickets = singul.transform(sourcedata, "list_tickets") # (coming soon)
print(tickets)
Basic output for list_tickets:
[{
"id": "P-123",
"title": "Ticket 1"
},
{
"id": "P-124",
"title": "Ticket 2"
}]
See default standards - Standards are modifiable, and you will see your own standards on the File page in Shuffle.
Exploring usage
To look through past executions, see the execution debugger available on /workflows/debug
Available Apps & categories
Available Categories (May 2024)
- Ticket management (Cases)
- Communication/Email (Comms)
- SIEM (SIEM)
- EDR/XDR (Eradication)
- Asset Management (Assets)
- Identity (IAM)
- Threat Intel (Intel)
- Cloud Security (Cloud)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shufflepy-0.1.5.tar.gz.
File metadata
- Download URL: shufflepy-0.1.5.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f14d467ea8976d5ddb8beff4bcc5bde0b3a8b5e7635b8443b6b43ee445fabb4d
|
|
| MD5 |
e8ba1a99acc42418f2b2318ec8b5ff37
|
|
| BLAKE2b-256 |
a17d7f6386260ba9c8f2d83306188d35fcf7773ad8395138483a7016d4864d44
|
File details
Details for the file shufflepy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: shufflepy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3708a5309f88662da631a9a277dd4d24acb166783b4793c8573d37b7d3e42d05
|
|
| MD5 |
b73e06210a6f1cd8ae142e77be0dbbaf
|
|
| BLAKE2b-256 |
f521f35dbce1ab6b18fea08f3e5a0877171f8a81010dde2929ec8dbb64bbacdb
|