Metadata-Version: 2.1
Name: cyjax-cti
Version: 1.0.4
Summary: cyjax-cti provides a Python library to use Cyjax platform API.
Home-page: https://www.cyjax.com
Author: Cyjax Ltd.
Author-email: github@cyjax.com
License: MIT
Description: ## Introduction
        
        ```cyjax-cti``` is a Python library to use Cyjax platform API. You can access different resources (incident reports,
        threat actors, indicators of compromise, etc.) from a Python script.
        
        The library is available on [Python Package Index](http://pypi.python.org/pypi/cyjax-cti).
        
        ### Install 
        
        You can install the ```cyjax-cti``` library with pip:
        
        ```
        pip install cyjax-cti
        ```
        
        ### Examples
        
        #### Set the API key
        
        ```python 
        import cyjax
        
        # set a global API key
        cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
        
        # set a resource API key
        cyjax.IndicatorOfCompromise(api_key="346568ecf85f0b5ca98f389908e8b803")
        ```
        
        #### Get indicators of compromise in the last 5 minutes
        
        ```python 
        import cyjax
        from datetime import timedelta
        
        cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
        
        indicators = cyjax.IndicatorOfCompromise().list(since=timedelta(minutes=5))
        for indicator in indicators:
            print(indicator)
        ```
        
        #### Get APT activity in last 6 months
        
        ```python 
        import cyjax
        from datetime import timedelta
        
        cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
        
        reports = cyjax.IncidentReport().list(query="APT", since=timedelta(days=30*6))
        for report in reports:
            print("Title: {}" % report['title'])
            print("Severity: {}" % report['severity'])
            print("Timestamp: {}" % report['last_update'])
        ```
        
        #### Get leaked emails in the last 30 days
        
        ```python 
        import cyjax
        from datetime import timedelta
        
        cyjax.api_key = "346568ecf85f0b5ca98f389908e8b803"
        
        for leaked_email in cyjax.LeakedEmail().list(since=timedelta(days=30)):
            print("Email: {}" % leaked_email['email'])
            print("Source: {}" % leaked_email['source'])
            print("Timestamp: {}" % leaked_email['discovered_at'])
        ```
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: test
