Skip to main content

Atlas is a search engine for parsing a collection of web pages and making it searchable.

Project description

Atlas

Atlas is a search engine for parsing a collection of web pages and making it searchable.

Atlas stands for Atila's Tool for Learning any Subject. We're starting by focusing on web3 and crypto related content with plans to add other subjects in the future. However, you're welcome to use Atlas to index and search any type of content you want.

Installation

pip install atila-atlas

Development Installation

source install.sh
pip install -e .

Quickstart

atlas initialize_index
atlas add_content --file data/urls_to_parse.txt
atlas add_content --urls https://ethereum.org/en/nft,https://en.wikipedia.org/wiki/Ethereum
atlas query "what is an nft"
atlas get_inbound_links --min-inbound-links=2

Development Quickstart

Note: Make sure you've put your environment variables into the newly created .env file that was taken from shared.env

# 1. Parse and index your content:
python atlas/content_parser.py

# 2. Initialize your content:
python atlas/content_index.py

# 3. Run the API
python api/api.py

# 4. Send a GET request to your api
curl --location --request GET 'http://127.0.0.1:8080/api/search?q=what+is+an+NFT'
# or open your browser to `http://127.0.0.1:8080/api/search?q=<your_search_term>` 

Publishing Package to PyPi

  1. python -m build
  2. Uploading to test PYPi server first to practice:
  3. python -m twine upload --repository testpypi dist/*
    1. Note the use of no-dependencies flag: --no-deps. This is because the dependencies might not be in the TestPyPi
    2. Set your username to token
    3. Set your password to the token value, including the pypi- prefix
  4. Upload to the real PyPI server:

Troubleshooting

ModuleNotFoundError: No module named 'atlas'

Set your $PYTHONPATH. See this [SO answer](ModuleNotFoundError: No module named 'atlas')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atila-atlas-0.0.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

atila_atlas-0.0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file atila-atlas-0.0.1.tar.gz.

File metadata

  • Download URL: atila-atlas-0.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for atila-atlas-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bcf519178549b231d3e9bff3702858579bccae031fadd5111308e9e48554120f
MD5 082992a6f88702fabd645175edbcbf75
BLAKE2b-256 93e5278252d72ae44fa0d0d9628b2a96e746c965ed46835446fd52b9919bd2ea

See more details on using hashes here.

File details

Details for the file atila_atlas-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: atila_atlas-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for atila_atlas-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b4331ecfbe7223ab93aee76674616aa39a8a5361800794ff9560c275f8cd40f
MD5 f4eb053712bc96405a4097d824fa7592
BLAKE2b-256 e4e23e858dcedf021e54628fde9f9b9af2bac026a343def6d1d24248ef7f0f60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page