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

pytx

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytx

Python Library for Facebook ThreatExchange

  • 0.5.10
  • PyPI
  • Socket score

Maintainers
2

pytx

pytx (pie-tex) is a Python Library for interfacing with Facebook's ThreatExchange.

Build Status

.. image:: https://travis-ci.org/facebook/ThreatExchange.svg :target: https://travis-ci.org/facebook/ThreatExchange

.. image:: https://img.shields.io/pypi/dm/pytx.svg :target: https://pypi.python.org/pypi/pytx/

.. image:: https://img.shields.io/pypi/v/pytx.svg :target: https://pypi.python.org/pypi/pytx

.. image:: https://img.shields.io/badge/python-2.7-blue.svg :target: https://pypi.python.org/pypi/pytx/

.. image:: https://img.shields.io/pypi/l/pytx.svg :target: https://pypi.python.org/pypi/pytx/

.. image:: https://readthedocs.org/projects/pytx/badge/?version=latest :target: https://pytx.readthedocs.org/

Installation

Use pip to install or upgrade pytx::

$ pip install pytx [--upgrade]

Quick Example

.. code-block :: python

from pytx.access_token import access_token from pytx import ThreatDescriptor from pytx.vocabulary import ThreatDescriptor as td

access_token('', '') 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_.

.. _readthedocs: https://pytx.readthedocs.org

Keywords

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