Django Embeddings
Installation
pip install django-embeddings
Usage
Add django_embeddings to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ...existing apps...
'django_embeddings',
]
Settings
Configure any necessary settings in settings.py:
DJANGO_EMBEDDINGS_SETTING = 'value'
Examples
# Example usage of the app
Using the Similar Pages API
To use the similar-pages API, follow these steps:
-
Start the Django server:
docker-compose up -
Open your browser and navigate to
http://localhost:8000/similar-pages/. -
Enter a URL in the input field and click the "Search" button to find similar pages.
The API endpoint for similar pages is available at:
GET /api/v1/similar-pages/?url=<URL>
Example:
GET http://localhost:8000/api/v1/similar-pages/?url=https://www.example.com/
This will return a JSON response with a list of similar pages and their details.
Running Tests
Run the tests using Django's test framework:
python manage.py test django_embeddings
Metadata
Release files for django-embeddings 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_embeddings-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / django_embeddings-1.0.0-py3-none-any.whl
| Download URL | django_embeddings-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49ef11ac7299f7f42a982ff725dd7ab8d27be7fed2f31aee090f57ec17d7e6ee
|
|
BLAKE2b-256 checksum How to use checksums |
0ca9bdf1ec58b02600eec088660316fe1943d4d5b54afaf05fc03a476324e5a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.13
|