Nle

Latest version: v0.9.1

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

Scan your dependencies

Page 4 of 5

0.7.0

- Bump version. (167, heiner)
- Asciinema does not support saving and loading of cursors, and this ru… (165, condnsdmatters)
- Eric/competition (156, condnsdmatters)
- Fix a bad buffer overflow in inv_strs. (162, heiner)

0.6.1

- Heiner/addhow (160, heiner)
- Turn "get_tty_rendering" into a somewhat saner function. (161, heiner)
- Remove has_color in an attempt to fix 157. (159, heiner)
- Change cmake install command. (158, heiner)
- Bump lodash from 4.17.19 to 4.17.21 in /nle/dashboard (154, dependabot)
- Cherry-pick upstream fix e7e07cb0. (150, heiner)
- Added render_mode argument in play.py script (149, samvelyan)
- Tty rendering for NLE environment (147, rockt)
- pre-commit for python3.8 (145, samvelyan)
- Fix bug in winrl getch which makes messages disappear forever (143, tscmoo)
- Rerange tty_colors to [0, 32) (142, tscmoo)
- Make space_dict global to reuse outside nle. (139, yobibyte)
- Remove ncurses from readme. (138, condnsdmatters)

🐛 Bug Fixes

- Set libtmt submodule url to use https (141, edran)

0.6.0

* Drop all ncurses dependencies, following memory leaks.
* Add a set of new observation keys ("tty_chars", "tty_colors", "tty_cursor"), to output a rendered terminal.
* Add a new observation key ("screen_descriptions"), with NetHacks's text descriptions of each square.
* Assorted bug fixes and improvements!

Full Changelog

- Release candidate branch for version 0.6.0. (137, condnsdmatters)
- Fix the name of the environment in README (136, shagunsodhani)
- Hotfix link (135, condnsdmatters)
- Add terminal output as an observation. (119, condnsdmatters)
- Added architecture document and links in README.md. (127, condnsdmatters)
- Fixup the test PyPI install workflow. (129, condnsdmatters)
- Fix checkup tool complains. (134, heiner)
- Improve performance (131, condnsdmatters)
- Add benchmarks sps profile test. (130, condnsdmatters)
- Add Dockerfile for Ubuntu 20.04 (focal fossa). Also fixup docker file to (126, condnsdmatters)
- Drop ncurses (125, heiner)
- Bump ncurses from 5 to 6. (124, condnsdmatters)
- Fix ncurses-related memory leak; various updates to help debugging (121, heiner)
- Use same running Python version in CMake. (116, heiner)
- Add uhunger to internal; fix eat task. (122, heiner)
- Fix extra newline at end of NLE run; fix fwrite when bz2 is disabled. (118, heiner)
- Fix a bad memory leak. (115, heiner)
- Use fewer magic constants. (110, heiner)
- Don't call setbuf on stdout in NLE (113, heiner)
- Remove temporary directory (109, heiner)
- Make NETHACKOPTIONS a tuple to protect from modification. (108, yobibyte)
- Add TELEPORT to non-RL actions. (101, yobibyte)
- Add text descriptions as an observation for each object on the map. (103, condnsdmatters)
- Terminal ttyrec stuff (99, heiner)
- Add inv letter to rendering. (100, yobibyte)
- Add neurips logo (98, heiner)
- Fix terminal size at 80x24, write bzip2'ed ttyrecs (97, heiner)
- Fix writing a wizkit file. (96, yobibyte)
- New ttyplay features (94, heiner)
- Add PRAY to autoskip exceptions. (88, yobibyte)
- Env updates (89, heiner)
- Env updates (87, heiner)

0.5.2

- Update README, docs, GitHub workflows, Dockerfiles. (85, heiner)
- Fix off-by-one error in gold task. (84, heiner)
- Add RUSH action. (83, yobibyte)
- Install the nethack util binaries and their documentation. (80, heiner)
- Add objclass and objdescr as Python classes. (81, heiner)
- Clarify origin of ttyplay.js and that we modified it. (82, heiner)
- Fix inventory test to not fail when the agent autopicks up some gold. (79, heiner)
- Wizkit support (78, yobibyte)
- Forward wizard mode through nle, add tests. (64, yobibyte)

0.5.0

Installing NLE

Install with pip: `pip install nle==0.5.0`.

Or pull the docker image: `docker pull fairnle/nle:0.5.0`.

See [README.md](https://github.com/facebookresearch/nle/blob/v0.2.1/README.md) and/or [docker/README.md](https://github.com/facebookresearch/nle/blob/v0.2.1/docker/README.md) for further instructions.

What's new?

This is nethack as a library.

Uses:

* fcontext for context switching ("yielding"), originally from Boost.
* dlopen/dlclose to reset global state. This is not POSIX compliant[1], but "works".
* Even worse, we *copy* the .so file in order for dlopen to create a new global state in a situation when we have several environments in the same process (dlopen looks at the inode or something, sym/hard-linking won't work). That's nuts but appears to work. On Linux, dlmopen and linker namespaces might be an alternative; however I didn't manage to make this work.

🚀 Speed measurements indicate a > 10x improvement over the current IPC implementation. 🚀

Speed measurements, raw environment in a Python loop:


$ python nle/scripts/play.py -m random -n 3 --no-render -e raw

0.2.0

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.