85 lines
1.3 KiB
YAML
85 lines
1.3 KiB
YAML
id: "python"
|
|
aliases:
|
|
- "python3"
|
|
- "python2"
|
|
- "py"
|
|
name: "Python"
|
|
monacoLang: python
|
|
|
|
info:
|
|
impl: "CPython"
|
|
version: "Python 3"
|
|
year: 1990
|
|
desc: "Interpreted, high-level, general-purpose programming language"
|
|
ext:
|
|
- py
|
|
- pyi
|
|
- pyc
|
|
- pyd
|
|
- pyo
|
|
- pyw
|
|
- pyz
|
|
web:
|
|
wiki: "https://en.wikipedia.org/wiki/Python_(programming_language)"
|
|
home: "https://www.python.org/"
|
|
source: "https://github.com/python/cpython"
|
|
category: general
|
|
mode: interpreted
|
|
platform: python
|
|
syntax:
|
|
- python
|
|
- whitespace
|
|
typing: dynamic
|
|
paradigm:
|
|
- functional
|
|
- imperative
|
|
- oo
|
|
usage: popular
|
|
|
|
install:
|
|
apt:
|
|
- python3
|
|
- python3-pip
|
|
- black
|
|
npm:
|
|
- pyright
|
|
|
|
repl: |
|
|
python3 -u
|
|
|
|
main: "main.py"
|
|
template: |
|
|
print("Hello, world!")
|
|
|
|
run: |
|
|
python3 -u -i main.py
|
|
|
|
scope:
|
|
code: |
|
|
x = 123 * 234
|
|
|
|
format:
|
|
run: |
|
|
black -
|
|
input: |
|
|
print('Hello, world!')
|
|
|
|
pkg:
|
|
install: |
|
|
pip3 install --user NAME
|
|
|
|
uninstall: |
|
|
pip3 uninstall NAME
|
|
|
|
search: |
|
|
python3 -c 'import json; from xmlrpc import client; print(json.dumps(client.ServerProxy("https://pypi.org/pypi").search({"name": "NAME"})))' | jq -r 'map(.name) | .[]'
|
|
|
|
lsp:
|
|
start: |
|
|
pyright-langserver --stdio
|
|
code: "import func"
|
|
item: "functools"
|
|
|
|
skip:
|
|
- lsp
|