Coder Social home page Coder Social logo

apis's Introduction

Chucknorris Api

chucknorris.py პროგრამის გაშვებისას ტერმინალში იბეჭდება ხუმრობა ჩაკ ნორისზე და მომხმარებელს აქ არჩევანი ნახოს მთლიანი API-ის პასუხი, ხოლო შემდეგ სურვილის შემთხვევაში შეინახოს ბაზაში.


საჭირო მოდულების ინსტალაცია

$ pip install -r requirements.txt

გამოყენების მაგალითი

$ python chucknorris.py

Response:       
status code: 200
headers:        
Date: Wed, 04 May 2022 17:32:28 GMT         
Content Type: application/json;charset=UTF-8
                                            
Joke:                                       
Chuck Norris is a proud sponsor of death!   
                                            
Do you want full json? (y / n)              
> y                                         
{                                                                             
    "categories": [],                                                         
    "created_at": "2020-01-05 13:42:25.628594",                               
    "icon_url": "https://assets.chucknorris.host/img/avatar/chuck-norris.png",
    "id": "pFoxZAFaSRais9-SHBJlMg",                                           
    "updated_at": "2020-01-05 13:42:25.628594",                               
    "url": "https://api.chucknorris.io/jokes/pFoxZAFaSRais9-SHBJlMg",         
    "value": "Chuck Norris is a proud sponsor of death!"                      
}                                                                             

Do you want to save? (y / n)
> n

Currencies Api

currencies.py პროგრამის გაშვებისას ტერმინალში გამოდის დიალოგური რეჟიმი, სადაც შეგიძლიათ აირჩიოთ რა თარიღის მიხედვით რა ინფორმაცია გინდათ. ასევე შესაძლებელია პროგრამას გაშვებისას გადაეცეს გარკვეული არგუმენტები. იხილეთ მაგალითები.


საჭირო მოდულების ინსტალაცია

$ pip install -r requirements.txt

გამოყენების მაგალითები

მაგალითი 1

$ python currencies.py

choice time:       
(1) - specific date
(2) - latest  

> 2

(1) - all currencies
(2) - one valute
(3) - get currency
(4) - convert 

> 3

from: 

> usd

to: 

> gel

{
    "date": "2022-05-04",
    "gel": 3.034985
} 

მაგალითი 2

$ python currencies.py eur gel

{
    "date": "2022-05-04",
    "gel": 3.193882
}

$ python currencies.py 300 usd gel

910.5 gel

apis's People

Contributors

datotoda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.