Nova API

Portuguese
Weslei
Member
 
Posts: 14
Joined: Sat Jun 21, 2014 20:57

Nova API

by Weslei » Mon Jun 23, 2014 17:40

Poderia ter 1 API de Python :) porque eu não sei nada de LUA apesar de ja ter tentado aprender e python e muito mais fácil
--------------- Brazil 5 world championships --------------------

============My Vote for an api in Python==================
 

User avatar
RefletDeflet
Member
 
Posts: 38
Joined: Sun May 04, 2014 22:39

Re: Nova API

by RefletDeflet » Fri Jun 27, 2014 23:15

Sim, não são bem APIs mas as suas finalidades são a mesma:

- Lunatic Python

- Lux

- Lupa

Fonte:
https://wiki.python.org/moin/IntegratingPythonWithOtherLanguages#Lua
Last edited by RefletDeflet on Mon Nov 02, 2015 21:19, edited 1 time in total.
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: Nova API

by iangp » Sun Oct 11, 2015 13:41

Eu apoio kkkkkkkkk
Python 4 Ever
mas depois vc pega o jeito da API em lua
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: Nova API

by iangp » Sun Oct 11, 2015 14:02

Me inspirei cara...
Agora estou tentando fazer um Mod que permita usar o python...
Imagine procurar recursos na web na hora de fazer seus mods?
Isso é um pouco perigoso, reconheço, mas é bem legal...

Até agora consegui mandar o Hello World chamando o sistema

no arquivo init.lua:

os.execute("python /home/ian/.minetest/mods/pythonic/em.py")

no arquivo em.py:
print "Hello World!\n"*400

Resultado no console:
Hello World!
Hello World!
...
Last edited by iangp on Sun Oct 11, 2015 20:28, edited 1 time in total.
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 

User avatar
iangp
Member
 
Posts: 114
Joined: Sat May 31, 2014 19:26
GitHub: 14NGiestas
IRC: iangp
In-game: iangp

Re: Nova API

by iangp » Sun Oct 11, 2015 19:00

Ai ó o resultado...

viewtopic.php?f=9&t=13381

Se alguém aqui usa windows testa para mim por favor!
God's not dead, He's surely alive!
エル プサイ コングルー

My mods (WIP):
 


Return to Português

Who is online

Users browsing this forum: No registered users and 8 guests

cron