Skip to main content

Use Singul to connect to API with a single line of code

Project description

Shufflepy

Connect to your favorite services with a single 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. 

shuffle = Singul(
	"APIKEY",
	url='https://shuffler.io',
)

Requirements

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.

shuffle.cases.create_ticket("jira", title="Title")
shuffle.communication.send_message("slack", message="Test")
shuffle.communication.send_message("teams", message="Test")
tickets = shuffle.cases.list_tickets("jira")

Normal App run control:

shuffle.run_app(app_id="bc78f35c6c6351b07a09b7aed5d29652", action="repeat_back_to_me", params={"call": "The value to repeat"})

Manual:

# General connect
resp = shuffle.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 = shuffle.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 image

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shufflepy-0.0.9.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shufflepy-0.0.9-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file shufflepy-0.0.9.tar.gz.

File metadata

  • Download URL: shufflepy-0.0.9.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for shufflepy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d145ded8341389d318a176a93d762dc9b40e760add4e29eb37190a9408c3fd8d
MD5 35518d2684ecd9585c4405a5b077a558
BLAKE2b-256 9ece0926de1d875be06a53b5b6e4f3a1e27c5faddf44d9058ae51c54f95e7dcf

See more details on using hashes here.

File details

Details for the file shufflepy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: shufflepy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.10

File hashes

Hashes for shufflepy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8a11bef019ad8233d749009114ab4c505f63d8fcc2f678b52be75b2d8e599790
MD5 e5f046ec858185694668ede041bae8b9
BLAKE2b-256 54b901ae86684cb3d163f29153f21338bea69c0bca5d6700601b64cb68bae788

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page