Sirji is an agentic AI framework for software development.
Built with ❤️ by True Sparrow
Sirji Tools
sirji-tools is a PyPI package that provides tools for:
- Crawling (downloading web pages to markdown files)
- Searching on Google
- Custom Logging
Installation
Setup Virtual Environment
We recommend setting up a virtual environment to isolate Python dependencies, ensuring project-specific packages without conflicting with system-wide installations.
python3 -m venv venv
source venv/bin/activate
Install Package
Install the package from PyPi:
pip install sirji-tools
Run the following command to install playwright:
playwright install
Usage
Environment Variables
Ensure that the following environment variables are set:
export SIRJI_PROJECT="Absolute folder path for Sirji to use as its project folder."
export SIRJI_RUN_PATH='Folder having run specific logs, etc.'
Crawl URLs
Crawl URLs tool will be used to crawl the web pages and extract the information from the web pages. And store the information for further processing by the researcher.
from sirji_tools import crawl_urls
urls = ['https://www.google.com', 'https://www.yahoo.com']
crawl_urls(urls, 'project/researcher')
Search
Search tool will be used to search the information from the web pages based on the search terms provided. It returns the list of URLs related to the search terms.
from sirji_tools import search_for
search_term = 'python programming'
urls = search_for(search_term)
Logger
Logger tool will be used to log the information in the log file. It will be used to log the information to show the progress of the execution.
from sirji_tools.logger import p_logger
p_logger.info("Log line here")
For Contributors
- Fork and clone the repository.
- Create and activate the virtual environment as described above.
- Set the environment variables as described above.
- Install the package in editable mode by running the following command from the repository root:
pip install -e .
- Run the following command to install playwright:
playwright install
Running Tests and Coverage Analysis
Follow the above-mentioned steps for "contributors", before running the test cases.
# Install testing dependencies
pip install pytest coverage
# Execute tests
pytest
# Measure coverage, excluding test files
coverage run --omit="tests/*" -m pytest
coverage report
License
Distributed under the MIT License. See LICENSE for more information.
Release files for sirji-tools 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sirji_tools-0.0.16.tar.gz | 10.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sirji_tools-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / sirji_tools-0.0.16.tar.gz
| Download URL | sirji_tools-0.0.16.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e506351f0d96a8f65c123d2043aac5e583e3df86e71582941c92b11a43f13297
|
|
BLAKE2b-256 checksum How to use checksums |
e15a19b424fff0fbbcb850907cff4dc9104413026e627beb8109b3d6e1ece2f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / sirji_tools-0.0.16-py3-none-any.whl
| Download URL | sirji_tools-0.0.16-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4f85cd7dc502456e8eaaec09eee99159aa32f889205aa02c81609b4580de45a
|
|
BLAKE2b-256 checksum How to use checksums |
3f9ce040a01dd18f0eea952d0f7bd1d67537754035ffb05fcc19a8a3fa91d475
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|