A Python implementation of the asset Database.
Project description
Open Asset Database
This package is a Python implementation of the Asset Database from the OWASP Amass Project.
Install
pip install open-asset-store
Exemple
from asset_store.repository.neo4j import NeoRepository
from asset_store.types import Edge
from asset_store.types import Entity
from asset_model import FQDN
from asset_model import IPAddress, IPAddressType
from asset_model import BasicDNSRelation
from asset_model import DNSRecordProperty
from asset_model import SourceProperty
uri = "neo4j://localhost"
auth = ("neo4j", "password")
with NeoRepository(uri, auth) as db:
fqdn = db.create_asset(FQDN("owasp.org"))
ip = db.create_entity(
Entity(
asset = IPAddress("104.20.44.163", IPAddressType.IPv4)))
a_record = db.create_edge(
Edge(
relation = BasicDNSRelation("dns_record", rrtype=1, rrname="A"),
from_entity = fqdn,
to_entity = ip))
txt_record = db.create_entity_property(
fqdn,
DNSRecordProperty("dns_record", "token=awes0me", 16, "TXT"))
source = db.create_edge_property(
a_record,
SourceProperty("myscript", 100))
Differences from upstream
In its current state, this repository only implements a Neo4j backend.
There is no :
- support for PostgreSQL or SQLite
- caching mechanism
- triple query interface
License
This code is licensed under the Apache License version 2.0.
See the LICENSE file for details.
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 open_asset_store-0.0.2.tar.gz.
File metadata
- Download URL: open_asset_store-0.0.2.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b168fa18ecfc96a1d75551d96a144a838e74775916a54570aff8934f089249b7
|
|
| MD5 |
8c4e0eda84e933a3deabfd1f191a2d2e
|
|
| BLAKE2b-256 |
0769915ecd0dbcc4c7e563d8eae41993a69138e60f36c2eb52490e56740d56f6
|
File details
Details for the file open_asset_store-0.0.2-py3-none-any.whl.
File metadata
- Download URL: open_asset_store-0.0.2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cbd7a572b6b8ebd521f4cb36fcd7d441fecce5a5abd1190ece2d1910aaafb86
|
|
| MD5 |
80adbc1b06f5557daf2e37de1f81543e
|
|
| BLAKE2b-256 |
6706e056f64ec79634269bc8ac1c4b6841c3c128d93fcb02b6bec33a332e0ec8
|