Skip to main content

description

Project description

Hey, this is lib can like this:

from pyndustry.pyndustry import *

storage = CommandsStorage()
Mprint('Hello world!', 'message1')
storage.convert()

Output:

printflush message1
print "Hello world!"

and like this:

from pyndustry.pyndustry import *
from pyndustry.memory import *

storage = CommandsStorage()
mem = MemoryStorage('cell1')
Mif(mem[0] > 10,
	Function(lambda :
		Mprint('Wow', 'message1'))) \
.apply()
End()
storage.convert()

Output:

read memoryStorageResult__cell1 cell1 0
jump 3 greaterThan memoryStorageResult__cell1 10
jump 5 always x false
printflush message1
print "Wow"
end

and

from pyndustry.pyndustry import *
from pyndustry.graphics import *

storage = CommandsStorage()
display = Display('display1')
display.bind()
display.drawGameSprite(0.5, 0.5, sprites.blocks.router, 16, byCoefficient=True)
storage.convert()

Output:

drawflush display1
draw image 40.0 40.0 @router 16 0 0

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

pyndustry-0.1.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

pyndustry-0.1.2-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pyndustry-0.1.2.tar.gz.

File metadata

  • Download URL: pyndustry-0.1.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pyndustry-0.1.2.tar.gz
Algorithm Hash digest
SHA256 488e4e217f1042a88f9a547c47edb006a04b07149048851d2bd9f06f89531234
MD5 bbf2f0c9afff9e9127121c2f28b34bf4
BLAKE2b-256 74435141d561e4d141e00788f52aef60add4c5c3ca92af2d00b38031920ae068

See more details on using hashes here.

File details

Details for the file pyndustry-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyndustry-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pyndustry-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba64ce4ffca81a8bd7ac135e9d41065f5cf88fd8af3445f0c94ffa3e08f5fa8a
MD5 68d59caaa021748120d106ad9e0d791c
BLAKE2b-256 dfe8bebe49f0eb1159723043f82e32470703a97fe356c9bec20cf1cd0b2ba2f0

See more details on using hashes here.

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