
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Inspired by dop.
.. code-block:: bash
# pip install dopy
To interact with Digital Ocean, you first need .. a digital ocean account with valid API keys.
Keys can be set either as Env variables, or within the code.
For API v.2.
.. code-block:: bash
# export DO_API_VERSION='2'
# export DO_API_TOKEN='api_token'
.. code-block:: pycon
>>> from dopy.manager import DoManager
>>> do = DoManager(None, 'api_token', api_version=2)
For API v.1.
.. code-block:: bash
# export DO_CLIENT_ID='client_id'
# export DO_API_KEY='long_api_key'
.. code-block:: pycon
>>> from dopy.manager import DoManager
>>> do = DoManager('client_id', 'long_api_key')
The methods of the DoManager are self explanatory; ex.
.. code-block:: pycon
>>> do.all_active_droplets()
>>> do.show_droplet('12345')
>>> do.destroy_droplet('12345')
>>> do.all_regions()
>>> do.all_images()
>>> do.all_ssh_keys()
>>> do.sizes()
>>> do.all_domains()
>>> do.new_droplet('new_droplet', 66, 1601, 1)
The methods for v.2 API are similar, the only difference is using names instead of IDs for domains and slugs for sizes, images and datacenters; ex.
.. code-block:: pycon
>>> do.show_domain('exapmle.com')
>>> do.new_droplet('new_droplet', '512mb', 'lamp', 'ams2')
See github issue list - post if any needed
FAQs
Python client for the Digital Ocean API
We found that dopy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.