DiscussionSLA

Intelligence DB Usage Guade

Published 24 days ago

# IP Thread Intelligence
# Resources

Published 24 days ago

profile_photo

co0ontty s

Updated 24 days ago

0

Intelligence Database Usage Guide

A simple guide to install and use the Intelligence Database library.

Installation

Install the library from TestPyPI (official PyPI release coming soon):

1pip3 install --index-url https://test.pypi.org/simple/ intelligence-db

Quick Start

Here's a simple example based on the demo code:

1from intelligence_db import IntelligenceDB
2
3def main():
4    # Database file path
5    db_file = '/path/to/your/intelligence.db'
6    
7    # Load database
8    db = IntelligenceDB(db_file)
9    
10    # Display statistics
11    stats = db.get_stats()
12    print(f"Statistics: {stats}")
13    
14    # Query test
15    result = db.query_item("13.196.249.206")
16    if result:
17        print(result)
18
19if __name__ == '__main__':
20    main()

Requirements

  • Python >= 3.7
  • cryptography >= 3.0.0

The cryptography library will be automatically installed as a dependency.

Basic Usage

  1. Import the library:

    1from intelligence_db import IntelligenceDB
  2. Create database instance:

    1db = IntelligenceDB('/path/to/intelligence.db')
  3. Query data:

    1result = db.query_item("192.168.1.1")
  4. Get statistics:

    1stats = db.get_stats()

That's it! You're ready to use the Intelligence Database library.