Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Releases: hashadex/Py93

v1.2 - Introducing Package manager!

30 May 13:09
Compare
Choose a tag to compare

About this release

You can now install Brython packages without actually saving it in packages folder.

Here's a quick example of how do you install packages via Package manager:

$ py93 pm a https://raw.githack.com/hasha2982/py93-packagetest/master/package42.json
Configuring request...
Sent the request, now awaiting response. This can take up to 30 seconds.

Use this to print out Package manager help message:

py93 pm help

This release also features a SDK, you can find documentation about it here.

Release notes

What's New

  • Package manager
  • SDK
  • Brython 3.8.9
  • Bugfixes

v1.1.2.1 - Bugfix

14 May 15:16
Compare
Choose a tag to compare

This version only fixes 1 bug. (commit 418ad34)

Release notes

What's New

  • Bugfix

v1.1.2 - Packages in the shell

10 May 18:08
Compare
Choose a tag to compare

Now the packages from the packages folder are loaded in the shell.

You can disable package loading just like in the compiler: using the new shell launcher options: -pi and --packages-ignore.

For example: I launched the shell with -pi option, and I have file mypackage.brython.js in the packages folder.

I have module mymodule in mypackage.

When I try to use this in the shell:

>>> import mymodule

it will give me an error, because I launched the shell with -pi option.

If I launch the shell without any options (just py93 shell), then I can use this:

>>> import mymodule

and it will not give me an error anymore.

Release notes

What's New

  • Packages from the packages folder are now loaded into the shell too

  • 4 new shell launcher options (2, excluding variations)

New shell launcher options

Option (full) Option (short) What it does
--help -h Prints out the shell launcher help message
--packages-ignore -pi Ignores packages in packages folder

v1.1.1 - Ability to set output directory

09 May 11:08
Compare
Choose a tag to compare

This update is pretty small, because it only adds the ability to change the compiler's output directory and some errors.

You can do this using the new --out or -o option.

For example: I want to compile file /a/w93.py and save it as windows93.html in /a/desktop/.

I can do this using the options --name (changing the output file name) and new -o (or --out). To do this I will use --name windows93 and -o a/desktop.

The full command:

py93 c /a/w93.py --name windows93 -o a/desktop

New possible errors

Error How to cause it Full error text
Can't write to /c/ Use any directory in /c/ as the output directory py93compile: compiler error: can't write to /c/, using standard output directory.
Wrong output directory Output directory should not start with /a, /c, a or c. (ex. /desktop/) py93compile: compiler error: wrong output directory, using standard output directory.

Release notes

What's New

  • Ability to change the compiler's output directory.
  • Options --out and -o
  • 2 new errors.

v1.1 - Packages!

08 May 09:01
Compare
Choose a tag to compare

Introducing... Packages!

Now you can use third-party modules that are not included in the standard Brython library.
Just drop the Brython .js package file (these are files with .brython.js extension, learn more here) to the packages folder, compile/recompile your .py file, and that's it! You can use modules from the package in your compiled file!

For example, I have a package that named mypackage and there's module mymodule inside this package.
When I trying to use this:

import mymodule

It gives me an error.
But now I dropped file mypackage.brython.js into the packages folder, recompiled my compiled file,
and now when I trying to use this:

import mymodule

it works and it doesn't gives me an error anymore!

Release notes

What's New

  • Packages
  • Bugfix
  • Two new compiler options

Learn about how to create a Brython package from Python package here.

New compiler options

In this version there's 2 new compiler options, but they are doing the same thing.
Option --packages-ignore (or just -pi)

With this option, packages from the packages folder will be ignored and not included into the compiled file.

v1.0 - Release!

03 May 16:12
Compare
Choose a tag to compare

Py93 - the first public release!

Py93 is Python 3 support for Windows 93 (thanks to Brython).

Features

  • Shell
  • Compiler
  • CLI application.