Skip to main content

push_swap_gui

Implementation of push-swap (42-school project) on python with GUI.

Foreword

  • Be welcome to use my project, install, clone and fork it!
  • If you find a bug, please, create new issue (or contact with me in any way you want) to report about it! I will be glad to fix it! If you find a mistake in my spelling (because I'm from Russia, and English is not my native language), please notify me too!
  • If you clone/fork this app and realise some new feature, you may create pull request! I am definitely interested in this!
  • Also, I will be happy if you follow me, or star this project, ecpecially if you find it usefull, or use my code!
  • For all questions be welcome to contact me in any way you want 👋

Here is my mail: elijahkash.code@gmail.com

How to use:

Install

This is a simple python3 package already added to PyPI. Therefore, to use you do not need to "clone" it from github. Just open terminal and run:

> pip3 install push_swap_gui

If you have just started at school42 and have never encountered python and have difficulty installing the application, visit this page: https://github.com/elijahkash/push_swap_gui/wiki/FAQ_for_beginners

Launch

Now you can run this application from any directory, and in two ways:

  • > python3 -m push_swap_gui
  • > push_swap_gui

Import

You also may import push_swap_gui as a module. In this case, you can:

  • push_swap_gui.PushSwapGUI(master) : create a window with app in tkinter item, transmitted as master
  • push_swap_gui.push_swap(src_data) : this func get iterable with source data, and return list with comands (push-swap solve)

Example:

>>> import push_swap_gui
>>> a = [1, -1, 3, 7, 2, 9, 12]
>>> push_swap_gui.push_swap(a)
['pb', 'ra', 'ra', 'ra', 'pb', 'ra', 'ra', 'ra', 'pa', 'pa', 'rra']
>>>

Uninstall

> pip3 uninstall push_swap_gui

License

  • See the LICENSE file for license rights and limitations (MIT).

Support

  • If you like my activity, you may say “thank you” to me and support me for any amount! Use 'Sponsor' button in github!

Metadata

Release files for push-swap-gui 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for push-swap-gui 1.1
File Size Uploaded Provenance Actions
push_swap_gui-1.1.tar.gz 8.8 kB Without provenance Details for push_swap_gui-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for push-swap-gui 1.1
File Interpreter ABI Platform Actions
push_swap_gui-1.1-py3-none-any.whl Python 3 none any Details for push_swap_gui-1.1-py3-none-any.whl

Total release size: 18.4 kB

Release files / push_swap_gui-1.1.tar.gz

Download URL push_swap_gui-1.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f638c4174a628cdb31b2a496192f10ff6ebc8bc34902577d7b78f749367806
BLAKE2b-256 checksum
How to use checksums
75c99ca4f627eee57183023e2f42b1da58c36d8e6800bc45ba69044e0aa9770a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Release files / push_swap_gui-1.1-py3-none-any.whl

Download URL push_swap_gui-1.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0c6dc4c7d71b118ab799925f8904fce8b4e99482e9fe1dcb6adb07e3abd65fd
BLAKE2b-256 checksum
How to use checksums
f546e9e92e4f3fcefb9f53675c1dd098aee17124843bcf2a1668e1ef53fa3c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Security for push-swap-gui 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page