ft_ps_tester

(★ 10)

Tester for the 42 push_swap project

File Explorer

  • i1.jpeg
  • i2.jpeg
  • LICENSE
  • pyproject.toml
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

pip

View Details ▼

Python package manager.
Some subcommands such as `install` have their own usage documentation.

pip install {{package}}

Install a package (see `pip install` for more install examples):

pip install --user {{package}}

Install a package to the user's directory instead of the system-wide default location:

pip install {{[-U|--upgrade]}} {{package}}

Upgrade a package:

🔍

pip3

View Details ▼

This command is an alias of `pip`.

tldr pip

View documentation for the original command:

🔍

pipx

View Details ▼

Install and run Python applications in isolated environments.

pipx run {{pycowsay}} {{moo}}

Run an app in a temporary virtual environment:

pipx install {{package}}

Install a package in a virtual environment and add entry points to path:

pipx uninstall {{package}}

Uninstall a package:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

python {{path/to/file.py}}

Execute a specific Python file:

python -i {{path/to/file.py}}

Execute a specific Python file and start a REPL:

🔍

python3

View Details ▼

This command is an alias of `python`.

tldr python

View documentation for the original command:

🔍

valgrind

View Details ▼

Wrapper for a set of expert tools for profiling, optimizing, and debugging programs.
Commonly used tools include `memcheck`, `cachegrind`, `callgrind`, `massif`, `helgrind`, and `drd`.

valgrind {{program}}

Use the (default) Memcheck tool to show a diagnostic of memory usage by `program`:

valgrind --leak-check=full --show-leak-kinds=all {{program}}

Use Memcheck to report all possible memory leaks of `program` in full detail:

valgrind --tool=cachegrind {{program}}

Use the Cachegrind tool to profile and log CPU cache operations of `program`:

🔍

leaks

View Details ▼

Search a process's memory for unreferenced malloc buffers.

leaks {{process_name}}

Examine a running process for leaks by its name:

leaks {{pid}}

Examine a running process for leaks by its PID:

leaks -atExit -- {{command}}

Launch a command and check for leaks when it exits:

// repository documentation