Dit-cli

Latest version: v0.5.1

Safety actively analyzes 621776 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.1

Changes
* More consistent and helpful error messages for 'Expected ";"'

* Fixed a crash caused by loading a restricted file.

* Fixed crashes caused by unexpected EOF in various parsing locations.

* Fixed a parsing fail caused when the last element of a class was a comment.

* Recursive attribution and extension were mistakenly allowed.

* Empty scripts will no longer be run.

0.4.0

Install with `pip install dit-cli` or update with `pip install dit-cli --upgrade`. You should also run `rm ~/.dit-languages` to refresh the changes to the language config.

What's new?

The `import` statement

Load data from https:

import Names from 'https://raw.githubusercontent.com/isaiahshiner/dits/master/dits/Number.dit';


Or the local file system:

import MyClasses from '/home/user/MyClasses.dit';

This will download the file, parse it, and make all of it's components available behind the `Names` namespace. Classes, objects, and assigners can be referenced from imported namespaces. Now dits can be composed of different code from many other dits. There's also a [new repo](https://github.com/isaiahshiner/dits) intended for exactly this purpose. Please add your own dits.

More examples of usage in [this dit](https://github.com/isaiahshiner/dit-cli/blob/master/examples/import.dit).

Other changes
* Dit strings now support all basic escape characters, including `\n`, `\t`, `\'` and `\"`.
* An empty dit will now return `file is empty` and one with classes but no objects will return `dit is valid, no objects to check`.
* Due to imported namespaces, assigners can no longer have the same name as a class or object.
* Many bugfixes, which are not being heavily documented yet.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.