pytx
pytx (pie-tex) is a Python Library for interfacing with Facebook’s ThreatExchange.
Build Status
Installation
Use pip to install or upgrade pytx:
$ pip install pytx [--upgrade]
Quick Example
from pytx.access_token import access_token
from pytx import ThreatDescriptor
from pytx.vocabulary import ThreatDescriptor as td
access_token('<app-id>', '<app-secret>')
results = ThreatDescriptor.objects(text='www.facebook.com')
for result in results:
print result.get(td.CONFIDENCE)
# type is type_ because type is a reserved word.
results = ThreatDescriptor.objects(type_='IP_ADDRESS',
text='127.0.0.1')
for result in results:
print result.get(td.INDICATOR)
Documentation
For more information you can find documentation in the ‘docs’ directory, check the Github wiki, or readthedocs.
Metadata
Release files for pytx 0.5.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytx-0.5.10.tar.gz | 36.6 kB | Without provenance | Details |
Release files / pytx-0.5.10.tar.gz
| Download URL | pytx-0.5.10.tar.gz |
|---|---|
| Size | 36.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfbb2fd951cdb8f40b6a4a979bf79efc612e65a93955196b269dc7abb5286e73
|
|
BLAKE2b-256 checksum How to use checksums |
cfbb70ef27807fe18859cbeb697130ca08c4cd155610ca4f3b7aea17f3a13c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytx 0.5.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.