ºÀ°í ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Zach Williams
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://zachwill.com
ºÀ°í ű×
ºÀ°í ¼³¸í
Bongo´Â Iowa City ¹ö½º µ¥ÀÌÅÍ APIÀÇ °£´ÜÇÑ API ·¡ÆÛÀÔ´Ï´Ù. ÁÖ·Î ´Ù°¡¿À´Â ºí·Î±× Post.InstallationYouÀÇ ¿¹·Î PIP¸¦ »ç¿ëÇÏ¿© API ·¡ÆÛ¸¦ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. PIP ¼³Ä¡ BongoUSage``python >>> Bongo Import Bongo >>> B = Bongo () >>> # ¸ðµç ºÀ°í °æ·Î ¸ñ·Ï. >>> b.routes () { "routes": } >>> ƯÁ¤ °æ·Î ¹× ´ë¸®Á¡¿¡ ´ëÇÑ Á¤º¸. >>> B.Route ( '·£ÅÏ', 'Coralville') { "Coralville 's": { "¶õ ·£ÅÏ": "}} >>> # ¸ñ·Ï ¸ðµç ¸ØÃã. >>> b.stops () { "stops": } >>> # ƯÁ¤ ÁßÁö¿¡ ´ëÇÑ Á¤º¸. >>> b.stop (8350) { "stop": { "8350": "Á¤º¸"}} >>> # ƯÁ¤ Á¤Áö¿¡¼ µµÂø ½Ã°£À» ¿¹ÃøÇϽʽÿÀ. >>> b.predict (8350) { "STOP": { "8350": "¿¹Ãø"} >>> # Bongo´Â XML µ¥ÀÌÅ͸¦ ¹ÝȯÇÏ´Â µ¥ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. >>> bongo ( 'xml'). °æ·Î () ... Á¦Ç°ÀÇ È¨ÆäÀÌÁö
ºÀ°í °ü·Ã ¼ÒÇÁÆ®¿þ¾î