Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Note that this is an alpha release of the project, and large changes may occur, however it is intended to keep the access paths to functions and classes the same.
This Python package provides a wrapper providing read-only access to the Atomic Assets API on the WAX blockchain. Full docs being assembled at Read the Docs.
Atom
class for accessing Atomic Asset DataHave a look at our roadmap here.
The recommended method of installation is through PyPI and pip
python -m pip install daltonapi
Fun fact: This package is named after John Dalton, a pioneer of Atomic Theory.
The main class of the Dalton package is the Atom class, which is used as an interface to the API
>>> from daltonapi.api import Atom
>>> atom = Atom()
Once you have created an Atom, it's simple to get information about an asset.
>>> my_asset = atom.get_asset("1099519242825")
>>> print(my_asset)
Asset 1099519242825: creekdrops21 - Bitcoin #1/21 (Max Supply: 21)
>>>
>>> # get link to asset's primary image
>>> print(my_asset.image)
https://ipfs.io/ipfs/QmUn8kvvHFrJK2mSsiPFNRMmmehnRoNJsqTP4XTVsemgrc
>>>
>>> # get asset collection, which is a Collection object
>>> collection = my_asset.collection
>>> print("Author:",collection.author)
Author: creek.gm
To get assets based on some criteria, you can use Atom.get_assets
, which will return a list based on criteria passed. Currently, get_assets
accepts owner, template, schema, and/or collection as either strings or Class Objects.
>>> # Get assets using owner and template as strings
>>> assets = atom.get_assets(owner="someowner123", template = "12345")
>>>
>>> # Get assets using collection class object
>>> assets = atom.get_assets(collection=my_asset.collection)
Full documentation is being assembled at Read the Docs.
See Contributing.
Alternatively, if you would like to sponsor me, consider donating some WAX to the address daltonpython
.
FAQs
Python wrapper for the AtomicAssets API
We found that daltonapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.