Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

syntropy-sdk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syntropy-sdk

Syntropy SDK for Python

  • 0.4.3
  • PyPI
  • Socket score

Maintainers
1

Tests PyPi

Syntropy SDK

Syntropy SDK for Python allows you to manage Syntropy Networks using simple Python interface.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 0.1.0
  • Package version: 0.4.3

Requirements.

Python 3.6+

Installation & Usage

pip install

Install the SDK simply using pip:

pip install syntropy_sdk

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/SyntropyNet/syntropy-python-sdk.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/SyntropyNet/syntropy-python-sdk.git)

Then import the package:

import syntropy_sdk 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import syntropy_sdk

Getting Started

Please follow the installation procedure and then use the following as a reference:

import syntropy_sdk as sdk
from syntropy_sdk.exceptions import ApiException
from syntropy_sdk.utils import WithRetry
from pprint import pprint

# Configure API
config = sdk.Configuration()
config.host = "url to the Syntropy Stack API"
config.api_key["api-key"] = "your api key"
api = sdk.ApiClient(config)

agents_api = sdk.AgentsApi(api)
try:
    api_response = WithRetry(agents_api.v1_network_agents_get)()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NetworkApi->v1_network_get: %s\n" % e)


# Create connections
connections_api = sdk.ConectionsApi(api)
try:
    body = sdk.V1NetworkConnectionsCreateP2PRequest(
        agent_pairs=[
            sdk.V1NetworkConnectionsCreateP2PRequestAgentPairs(agent_2_id=1, agent_1_id=0),
            sdk.V1NetworkConnectionsCreateP2PRequestAgentPairs(agent_2_id=2, agent_1_id=1),
            sdk.V1NetworkConnectionsCreateP2PRequestAgentPairs(agent_2_id=4, agent_1_id=2),
        ],
    )

    connections = connections_api.v1_network_connections_create_p2_p(body=body).data
except ApiException as e:
    print("Exception when creating a network: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.syntropystack.com

ClassMethodHTTP requestDescription
AgentsApiv1_network_agents_coordinates_searchPOST /v1/network/agents/coordinates/searchSearch Agent location coordinates
AgentsApiv1_network_agents_createPOST /v1/network/agentsCreate Agent
AgentsApiv1_network_agents_deleteDELETE /v1/network/agents/{agent_id}Delete Agent
AgentsApiv1_network_agents_filters_searchPOST /v1/network/agents/filters/searchSearch Agent filters
AgentsApiv1_network_agents_getGET /v1/network/agentsGet Agents
AgentsApiv1_network_agents_logs_errors_searchPOST /v1/network/agents/logs/errors/searchSearch Agent error logs
AgentsApiv1_network_agents_logs_reads_timestamp_searchPOST /v1/network/agents/logs-reads-timestampSave log read timestamp
AgentsApiv1_network_agents_logs_searchPOST /v1/network/agents/logs/searchSearch Agent logs
AgentsApiv1_network_agents_providers_getGET /v1/network/agents/providersGet Agent providers
AgentsApiv1_network_agents_removePOST /v1/network/agents/removeDelete Agents
AgentsApiv1_network_agents_searchPOST /v1/network/agents/searchSearch Agents
AgentsApiv1_network_agents_services_deleteDELETE /v1/network/agents/services/{agent_service_subnet_id}Delete Agent service
AgentsApiv1_network_agents_services_getGET /v1/network/agents/servicesGet Agent services.
AgentsApiv1_network_agents_services_removePOST /v1/network/agents/services/removeDelete Agent services
AgentsApiv1_network_agents_services_updatePATCH /v1/network/agents/services/bulkUpdate Agent services
AgentsApiv1_network_agents_settings_getGET /v1/network/agents/settingsGet Agent settings
AgentsApiv1_network_agents_settings_updatePATCH /v1/network/agents/settingsUpdate Agent settings
AgentsApiv1_network_agents_tags_getGET /v1/network/agents/tagsGet Agent tags
AgentsApiv1_network_agents_updatePATCH /v1/network/agents/{agent_id}Updates Agent
AgentsApiv1_network_agents_wg_config_get_oneGET /v1/network/agents/wg-config/{agent_id}Get Agent Wg config
AnalyticsApiv1_network_a_bandwidth_getGET /v1/network/a/bandwidthGet bandwidth
AnalyticsApiv1_network_a_iface_active_change_getGET /v1/network/a/iface-active-changeGet active iface changes
AnalyticsApiv1_network_a_latency_getGET /v1/network/a/latencyGet latency
AnalyticsApiv1_network_a_packet_loss_getGET /v1/network/a/packet-lossGet packet loss
AnalyticsApiv1_network_a_statuses_searchPOST /v1/network/a/statuses/searchSearch statuses
AnalyticsApiv1_network_a_statuses_warnings_searchPOST /v1/network/a/statuses/warnings/searchSearch status warnings
AuditApiv1_network_audit_searchPOST /v1/network/audit/logs/searchSearch audit logs
AuthApiv1_network_auth_access_token_loginPOST /v1/network/auth/access-token/loginLogin (Access token)
AuthApiv1_network_auth_access_tokens_createPOST /v1/network/auth/access-tokensCreate Access token
AuthApiv1_network_auth_access_tokens_deleteDELETE /v1/network/auth/access-tokens/{access_token_id}Delete Access token
AuthApiv1_network_auth_access_tokens_getGET /v1/network/auth/access-tokensGet Access tokens
AuthApiv1_network_auth_access_tokens_permissions_getGET /v1/network/auth/access-tokens/permissionsGet Access token permissions
AuthApiv1_network_auth_api_keys_createPOST /v1/network/auth/api-keysCreate API key
AuthApiv1_network_auth_api_keys_deleteDELETE /v1/network/auth/api-keys/{api_key_id}Delete API key
AuthApiv1_network_auth_api_keys_getGET /v1/network/auth/api-keysGet API keys
AuthApiv1_network_auth_logoutPOST /v1/network/auth/logoutLogout
AuthApiv1_network_auth_mfa_confirmPOST /v1/network/auth/mfa/confirmConfirm MFA
AuthApiv1_network_auth_mfa_disablePOST /v1/network/auth/mfa/disableDisable MFA
AuthApiv1_network_auth_mfa_disable_using_backupPOST /v1/network/auth/mfa/disable-using-backupDisable MFA (backup)
AuthApiv1_network_auth_mfa_generateGET /v1/network/auth/mfa/generateGenerate MFA
AuthApiv1_network_auth_settings_updatePATCH /v1/network/auth/user/settingsUpdate User settings
AuthApiv1_network_auth_user_getGET /v1/network/auth/userGet User info
AuthApiv1_network_auth_user_invitations_getGET /v1/network/auth/user/invitationsGet invitations for authenticated user
AuthApiv1_network_auth_users_getGET /v1/network/auth/usersGet workspace users
AuthApiv1_network_auth_users_removePOST /v1/network/auth/users/removeRemove users from workspace
AuthApiv1_network_auth_users_role_updatePATCH /v1/network/auth/users/{user_id}/roleUpdate user role in the workspace
AuthApiv1_network_auth_verify_emailPOST /v1/network/auth/verify-email/{code}Verify email
AuthApiv1_network_auth_workspace_createPOST /v1/network/auth/workspacesCreate workspace
AuthApiv1_network_auth_workspace_deleteDELETE /v1/network/auth/workspaces/{workspace_id}Delete workspace
AuthApiv1_network_auth_workspace_getGET /v1/network/auth/workspacesGet workspaces
AuthApiv1_network_auth_workspace_updatePATCH /v1/network/auth/workspaces/{workspace_id}Update workspace
AuthApiv1_network_auth_workspaces_invitations_acceptPOST /v1/network/auth/workspaces/invitations/{invitation_id}/acceptAccept workspace invitation
AuthApiv1_network_auth_workspaces_invitations_createPOST /v1/network/auth/workspaces/invitationsCreate workspace invitation
AuthApiv1_network_auth_workspaces_invitations_declinePOST /v1/network/auth/workspaces/invitations/{invitation_id}/declineDecline workspace invitation
AuthApiv1_network_auth_workspaces_invitations_getGET /v1/network/auth/workspaces/invitationsGet workspace invitations
AuthApiv1_network_auth_workspaces_invitations_removePOST /v1/network/auth/workspaces/invitations/removeDelete workspace invitations
AuthApiv1_network_auth_workspaces_leavePOST /v1/network/auth/workspaces/leaveLeave workspace
ConnectionsApiv1_network_connections_create_meshPOST /v1/network/connections/meshCreate Connections Mesh
ConnectionsApiv1_network_connections_create_p2_pPOST /v1/network/connections/point-to-pointCreate P2P Connections
ConnectionsApiv1_network_connections_deleteDELETE /v1/network/connections/{agent_connection_group_id}Delete Connection
ConnectionsApiv1_network_connections_getGET /v1/network/connectionsGet Connections
ConnectionsApiv1_network_connections_removePOST /v1/network/connections/removeDelete Connections
ConnectionsApiv1_network_connections_searchPOST /v1/network/connections/searchSearch Connections
ConnectionsApiv1_network_connections_services_deleteDELETE /v1/network/connections/services/{agent_connection_subnet_id}Delete Connection service
ConnectionsApiv1_network_connections_services_getGET /v1/network/connections/servicesGet Connection services
ConnectionsApiv1_network_connections_services_removePOST /v1/network/connections/services/removeDelete Connection services
ConnectionsApiv1_network_connections_services_updatePATCH /v1/network/connections/servicesUpdate Connection services
ConnectionsApiv1_network_connections_updatePATCH /v1/network/connectionsUpdate Connections
NetworkApiv1_network_getGET /v1/networkGet Network view
NotificationApiv1_network_notification_user_contact_updatePOST /v1/network/notification/user-contactUpdate User contact
RulesApirules_connection_point_to_tag_updatePATCH /v1/network/rules/connections/point-to-tagUpsert point-to-tag
RulesApiv1_network_rules_connections_point_to_tag_createPOST /v1/network/rules/connections/point-to-tagCreate point-to-tag
RulesApiv1_network_rules_connections_point_to_tag_get_oneGET /v1/network/rules/connections/point-to-tag/{agent_id}Get point-to-tag
RulesApiv1_network_rules_connections_point_to_tag_searchPOST /v1/network/rules/connections/point-to-tag/searchSearch point-to-tag Rules
RulesApiv1_network_rules_searchPOST /v1/network/rules/searchSearch Rules
RulesApiv1_rules_connection_point_to_tag_removePOST /v1/network/rules/connections/point-to-tag/removeRemove point-to-tag
SDNAgentsApiv1_network_sdn_agents_getGET /v1/network/sdn-agents/ipsGet SDN Agent ips

Documentation For Models

Documentation For Authorization

In order to use this SDK you must have a valid API Authorization token. This token can be obtained either by using AuthApi.local method or using the UI. This token should be passed to the configuration object like so:

configuration.api_key['Authorization'] = 'YOUR_API_KEY'

jwt

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

support@syntropynet.com

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc