IRAN PLECE IMAGE API
IRPI is a RESTful API. you can download Iran's beautiful Places image.
Please first create a virtual environment with the following command.
$ python3 -m venv env
$ . env/bin/activate
> py -3 -m venv env
> env\Scripts\activate
then install requirements:
$ pip install -e .
and run the app:
$ export FLASK_APP=IRIP/main.py
$ flask run
> set FLASK_APP=IRIP/main.py
> flask run
> $env:FLASK_APP = "IRIP/main.py"
> flask run
$ curl IRPI.com.api/v1/random
{
"data": {
"description": "description",
"location": "location",
"name": "example",
"photographer": "the photographer",
"sender": "sender"
},
"id": "uuid4",
"img name": "example",
"img url": "http://localhost:5000/img/example/image.jpg",
"status": "ok"
}
$ curl IRPI.com/v1/find/example
{
"data": {
"description": "description",
"location": "location",
"name": "example",
"photographer": "the photographer",
"sender": "sender"
},
"id": "uuid4",
"img name": "example",
"img url": "http://localhost:5000/img/example/image.jpg",
"status": "ok"
}
- Add more images
- use flask-restful or etc
- add more features
Name | Location | Photographer | source | description | view |
---|---|---|---|---|---|
Azadi Tower | Tehran | muhammad muhammadi | iran.ir | The Azadi Tower (Persian: برج آزادی, Borj-e Āzādi; 'Freedom Tower'), formerly known as the Shahyad Tower (برج شهیاد, Borj-e Šahyād; 'Shah's Memorial Tower'), is a monument located on Azadi Square in Tehran, Iran. It is one of the landmarks of Tehran, marking the west entrance to the city, and is part of the Azadi Cultural Complex, which also includes an underground museum. wikipedia | |
Jamkaran Mosque | Qom | Haji | iran.ir | The Jamkaran Mosque (Persian: مسجد جمکران, Masjed-e Jamkarân) is one of the primary significant mosques in Jamkaran, a village in the outskirts of the city of Qom, Iran. wikipedia | |
Nature of Ardabil | Ardabil | Naser Esmaili | iran.ir | Ardabil city is the center of Ardabil province and it is considered to be one of the ancient regions of Iran with about 5000 years of history. Ardabil city is at the northwest of Iran near Iran’s border with the Republic of Azerbaijan. Having a pleasant climate, cool summers and having the beautiful Savalan (Sabalan) mountain with its high and attractive peaks next to it which makes the climate of this city ever more pleasant, has added to the extraordinary beauty of this city, making it one of the tourism centers in the country. Tisazvasvari in Hungary and Erzurum in Turkey are the sister cities of Ardabil. educationiran | |
Persepolis | Shiraz | muhammad muhammadi | iran.ir | Persepolis (/pərˈsɛpəlɪs/; Old Persian: 𐎱𐎠𐎼𐎿, Pārsa; New Persian: تخت جمشید, romanized: Takht-e Jamshīd, lit. 'Throne of Jamshid') was the ceremonial capital of the Achaemenid Empire (c. 550–330 BC). It is situated in the plains of Marvdasht, encircled by southern Zagros mountains of Iran. Modern day Shiraz is situated 60 kilometres (37 mi) southwest of the ruins of Persepolis. The earliest remains of Persepolis date back to 515 BC. It exemplifies the Achaemenid style of architecture. UNESCO declared the ruins of Persepolis a World Heritage Site in 1979.[2] wikipedia | |
Si-o-se-pol | Isfahan | muhammad muhammad nia | iran.ir | The Allahverdi Khan Bridge (Persian: پل اللهوردی خان), popularly known as Si-o-se-pol (Persian: سیوسهپل, lit. '[the] bridge of thirty-three [spans]'),[1] is the largest of the eleven historical bridges on the Zayanderud, the largest river of the Iranian Plateau, in Isfahan, Iran.[2] The bridge was built in the early 17th century to serve as both a bridge and a dam.[3] It is a popular recreational gathering place, and is one of the most famous examples of Iran's Safavid architecture. wikipedia |