Skip to main content

Django app for Prayer times

Project description

=====
owghat-api
=====
owghat-api is a django app for Islamic times (owghat e shar'ee)

Quick start
-----------
pip install django-owghatapi

requirements: sqlparse,djangorestframework,pytz

1. Add "owghatapi" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'owghatapi',
]

2. Include the owghatapi URLconf in your project urls.py like this::

path('owghatapi/', include('owghatapi.urls')),

3. Run `python manage.py migrate` to create the owghat models and seed the DB .


5. Visit http://127.0.0.1:8000/owghatapi/<str:city-name>/ to get the times for more than 400 selected cities of iran (city name in Farsi),
http://127.0.0.1:8000/owghatapi/35.69439/51.42151 to get the times for today and specific location(latitude/longitude) in iran,
and http://127.0.0.1:8000/<int:year>/<int:month>/<int:day>/<str:lat>/<str:long>/<str:tz>/ for specific time,location,and timezone


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

django-owghatapi-0.2.1.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

django_owghatapi-0.2.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file django-owghatapi-0.2.1.tar.gz.

File metadata

  • Download URL: django-owghatapi-0.2.1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django-owghatapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 41413db15f88bc1a5e8843ebe27a628640d1fea7a6ae559e769acf4681a3b049
MD5 307a206ab73289b6badf48f7a467532f
BLAKE2b-256 2a7fb466a5d9be2b1aaeb85ab2141a3692961cd5cb908b30dd0072fda8f3e70d

See more details on using hashes here.

Provenance

File details

Details for the file django_owghatapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: django_owghatapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_owghatapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae66db58bc6ae8b08d5e996991eb7c9d7b65cb24eb535ec8b8bc8940af1d687b
MD5 3218168e6cdd2537255cbafebc12bdf7
BLAKE2b-256 d238ceee59d7ae49eec30dca5a18741696fadd54b0a479f69258d4c4b9615904

See more details on using hashes here.

Provenance

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