Skip to main content

A zig script runner

Project description

zigrun

Runs zig expressions, statements, and scripts directly from the command line.

Example

zigrun --expr -c '7 + 9'
> 16
# Shorthand for --expr -c
zigrun --eval '@sizeOf(u64)'
> 8
# Even shorter shorthand
zigrun -e '"Foo" ++ "Bar"'
> FooBar
zigrun --stmt <<EOF
std.debug.print("Foo: {}\n", .{6});
// Nice aliases
print("Bar: {}\n", .{6});
println("Foo", .{7});
EOF
> Foo: 6
> Bar: 7
> Foo: 7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zigrun-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file zigrun-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zigrun-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for zigrun-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd778fe6d442af117fbfdec017ee49bd4737a29b6f5d8779d0e80464da6f7670
MD5 5a1f5e3101794be46064abb0c7731496
BLAKE2b-256 3606d46d5edd6a817a0aa1312d697306249df4edb4f23c8720e16a69d09d5c6d

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