Repository: juancarlospaco/cpython Branch: nim Commit: 7c9cd23d3357 Files: 240 Total size: 3.4 MB Directory structure: gitextract_krlmm29s/ ├── .gitattributes ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yml │ │ └── config.yml │ └── workflows/ │ ├── add-stars.yml │ ├── antispamm.yml │ ├── build.yml │ ├── stale.yml │ ├── welcome-new-users.yml │ └── wiki-on-edit.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── cpython.nimble ├── docs/ │ ├── atexit.html │ ├── base64.html │ ├── bgl.html │ ├── binascii.html │ ├── binhex.html │ ├── bl_math.html │ ├── blf.html │ ├── bpy_app_icons.html │ ├── bpy_app_timers.html │ ├── bpy_app_translations.html │ ├── bpy_msgbus.html │ ├── bpy_path.html │ ├── bpy_utils.html │ ├── bpy_utils_units.html │ ├── builtins.html │ ├── bz2.html │ ├── cmath.html │ ├── codecs.html │ ├── codeop.html │ ├── colorsys.html │ ├── compileall.html │ ├── copy.html │ ├── crypt.html │ ├── curses.html │ ├── dbd.html │ ├── decimal.html │ ├── dis.html │ ├── doctest.html │ ├── ensurepip.html │ ├── errno.html │ ├── faulthandler.html │ ├── fcntl.html │ ├── filecmp.html │ ├── fnmatch.html │ ├── gc.html │ ├── getopt.html │ ├── getpass.html │ ├── gettext.html │ ├── glob.html │ ├── grp.html │ ├── gzip.html │ ├── hashlib.html │ ├── hmac.html │ ├── html_entities.html │ ├── imghdr.html │ ├── imp.html │ ├── importlib.html │ ├── keyword.html │ ├── linecache.html │ ├── logging.html │ ├── lzma.html │ ├── marshal.html │ ├── math.html │ ├── mathutils_geometry.html │ ├── mathutils_noise.html │ ├── mimetypes.html │ ├── nimdoc.out.css │ ├── nis.html │ ├── ntpath.html │ ├── operator.html │ ├── os.html │ ├── pickle.html │ ├── pickletools.html │ ├── pkgutil.html │ ├── posixpath.html │ ├── pprint.html │ ├── pwd.html │ ├── py_compile.html │ ├── quopri.html │ ├── random.html │ ├── re.html │ ├── readline.html │ ├── reprlib.html │ ├── resource.html │ ├── runpy.html │ ├── secrets.html │ ├── shutil.html │ ├── signal.html │ ├── site.html │ ├── sndhdr.html │ ├── spwd.html │ ├── ssl.html │ ├── statistics.html │ ├── struct.html │ ├── subprocess.html │ ├── sys.html │ ├── sysconfig.html │ ├── syslog.html │ ├── tabnanny.html │ ├── tempfile.html │ ├── termios.html │ ├── textwrap.html │ ├── timeit.html │ ├── token.html │ ├── tty.html │ ├── turtle.html │ ├── typing.html │ ├── unicodedata.html │ ├── uu.html │ ├── uuid.html │ ├── venv.html │ ├── warnings.html │ ├── webbrowser.html │ ├── winsound.html │ ├── zipapp.html │ └── zlib.html ├── src/ │ └── cpython/ │ ├── atexit.nim │ ├── base64.nim │ ├── binascii.nim │ ├── binhex.nim │ ├── bisect.nim │ ├── builtins.nim │ ├── bz2.nim │ ├── calendar.nim │ ├── cmath.nim │ ├── codecs.nim │ ├── codeop.nim │ ├── colorsys.nim │ ├── compileall.nim │ ├── copy.nim │ ├── crypt.nim │ ├── curses.nim │ ├── dbd.nim │ ├── decimal.nim │ ├── dis.nim │ ├── doctest.nim │ ├── ensurepip.nim │ ├── errno.nim │ ├── faulthandler.nim │ ├── fcntl.nim │ ├── filecmp.nim │ ├── fnmatch.nim │ ├── gc.nim │ ├── getopt.nim │ ├── getpass.nim │ ├── gettext.nim │ ├── glob.nim │ ├── grp.nim │ ├── gzip.nim │ ├── hashlib.nim │ ├── hmac.nim │ ├── html_entities.nim │ ├── imghdr.nim │ ├── imp.nim │ ├── importlib.nim │ ├── keyword.nim │ ├── linecache.nim │ ├── logging.nim │ ├── lzma.nim │ ├── marshal.nim │ ├── math.nim │ ├── mimetypes.nim │ ├── nis.nim │ ├── ntpath.nim │ ├── operator.nim │ ├── os.nim │ ├── pickle.nim │ ├── pickletools.nim │ ├── pkgutil.nim │ ├── posixpath.nim │ ├── pprint.nim │ ├── pwd.nim │ ├── py_compile.nim │ ├── quopri.nim │ ├── random.nim │ ├── re.nim │ ├── readline.nim │ ├── reprlib.nim │ ├── resource.nim │ ├── runpy.nim │ ├── secrets.nim │ ├── shutil.nim │ ├── signal.nim │ ├── site.nim │ ├── sndhdr.nim │ ├── spwd.nim │ ├── ssl.nim │ ├── statistics.nim │ ├── stringprep.nim │ ├── strings.nim │ ├── struct.nim │ ├── subprocess.nim │ ├── sys.nim │ ├── sysconfig.nim │ ├── syslog.nim │ ├── tabnanny.nim │ ├── tempfile.nim │ ├── termios.nim │ ├── textwrap.nim │ ├── timeit.nim │ ├── token.nim │ ├── tomllib.nim │ ├── tty.nim │ ├── turtle.nim │ ├── typing.nim │ ├── unicodedata.nim │ ├── upbge/ │ │ ├── bge_render.nim │ │ ├── bgl.nim │ │ ├── bl_math.nim │ │ ├── blf.nim │ │ ├── bpy_app.nim │ │ ├── bpy_app_icons.nim │ │ ├── bpy_app_timers.nim │ │ ├── bpy_app_translations.nim │ │ ├── bpy_msgbus.nim │ │ ├── bpy_path.nim │ │ ├── bpy_utils.nim │ │ ├── bpy_utils_units.nim │ │ ├── gpu_capabilities.nim │ │ ├── gpu_extras.nim │ │ ├── gpu_platform.nim │ │ ├── gpu_select.nim │ │ ├── gpu_state.nim │ │ ├── imbuff.nim │ │ ├── mathutils_geometry.nim │ │ └── mathutils_noise.nim │ ├── uu.nim │ ├── uuid.nim │ ├── venv.nim │ ├── warnings.nim │ ├── webbrowser.nim │ ├── winsound.nim │ ├── zipapp.nim │ └── zlib.nim └── wiki_changelog_2022.md ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ *.* linguist-language=Python ================================================ FILE: .github/FUNDING.yml ================================================ custom: ["https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e"] ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.yml ================================================ name: "BUG Report" description: "Create a new Bug report." title: "[bug] " labels: ["unconfirmed"] assignees: ["juancarlospaco"] body: - type: markdown attributes: value: | - **Remember to :star: Star the project on GitHub!.** - **Please provide a minimal code example that reproduces the :bug: Bug!.** Reports with full repro code and descriptive detailed information will be fixed faster. - [Please, keep in mind there is ZERO FUNDING for the project!, we have no sponsors, no company behind, no dev team, :heart: Send crypto today to speed up development!](https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e) - type: dropdown id: architecture attributes: label: Architecture description: What is your Hardware Architecture? options: - x86_64 (Default) - x86_32 (32Bit) - ARM_64 (64Bit) - ARM_32 (32Bit) - AVR (Arduino, ESP32) - RISC (RISC-V) - Others (Unkown) validations: required: true - type: dropdown id: os attributes: label: Operating System description: What is your Operating System? options: - Linux - Windows - Mac OSX - Android - BSD - FreeDOS - ReactOS - Others (Unkown) validations: required: true - type: dropdown id: disk attributes: label: Disk description: What is your main Disk Storage? options: - SSD (Solid) - HDD (SATA, IDE, Mechanical) - NVME (M2, MSATA) - Others (USB) validations: required: true - type: dropdown id: ram attributes: label: Memory description: What is your total RAM Memory capacity? options: - 1 Gigabytes - 2 Gigabytes - 4 Gigabytes - 8 Gigabytes - 16 Gigabytes - 32 Gigabytes - 64 Gigabytes - 128 Gigabytes - 256 Gigabytes - 512 Gigabytes - Others (Unkown) validations: required: true - type: dropdown id: cores attributes: label: CPU Cores description: What is your total CPU Cores count? options: - 1 CPU Cores - 2 CPU Cores - 4 CPU Cores - 8 CPU Cores - 16 CPU Cores - 32 CPU Cores - 64 CPU Cores - 128 CPU Cores - 256 CPU Cores - 512 CPU Cores - Others (Unkown) validations: required: true - type: dropdown id: internet attributes: label: Internet Connection description: What is your Internet connection? options: - Optical Fiber (very fast) - DSL (aDSL, DSL, etc) - Wifi (WLAN, Wireless) - LAN (RJ45, Local, etc) - Satellite (StarLink, etc) - Mobile (4G, 3G, Edge, etc) - Offline (No Internet) - Others (Unkown) validations: required: true - type: dropdown id: browser attributes: label: Web browser description: What is your web browser? options: - Chrome/Chromium - Firefox/Firefox Fork - Apple Safari - Microsoft Edge - KDE (Konqueror, Falkon, etc) - Others (Unkown) validations: required: true - type: dropdown id: antivirus attributes: label: AntiVirus description: Do you use an Anti-Virus? options: - "Yes" - "No" - Others (Unkown) validations: required: true - type: dropdown id: device attributes: label: Device description: What kind of computer is it? options: - Desktop PC - Server PC - Docker/Qemu (Container) - VirtualBox/Vagrant (Virtual Machine) - Embedded/IOT - Arduino/ESP32 Kit - SmartTV/SmartDisplay - Drone/Robot - ASIC/FPGA/Crypto-mining hardware - PLC/Industrial/heavy machine - Point Of Sale/Kiosk/ATM - Car/Self-Driving/On-Board Computer - Electric scooter/Electric bike - Satellite/MicroSatellite - Military machine - Others (Unkown) validations: required: true - type: dropdown id: country attributes: label: Where are you from? options: - Afghanistan - Albania - Algeria - Andorra - Angola - Antigua - Argentina - Armenia - Australia - Austria - Azerbaijan - Bahamas - Bahrain - Bangladesh - Barbados - Belarus - Belgium - Belize - Benin - Bhutan - Bolivia - Bosnia Herzegovina - Botswana - Brazil - Brunei - Bulgaria - Burkina - Burundi - Cambodia - Cameroon - Canada - Cape Verde - Central African Republic - Chad - Chile - China - Colombia - Comoros - Congo - Congo Democratic Republic - Costa Rica - Croatia - Cuba - Curacao - Cyprus - Czech Republic - Denmark - Djibouti - Dominica - Dominican Republic - East Timor - Ecuador - Egypt - El Salvador - Equatorial Guinea - Eritrea - Estonia - Ethiopia - Fiji - Finland - France - Gabon - Gambia - Georgia - Germany - Ghana - Greece - Grenada - Guatemala - Guinea - Guinea-Bissau - Guyana - Haiti - Honduras - Hungary - Iceland - India - Indonesia - Iran - Iraq - Ireland - Israel - Italy - Ivory Coast - Jamaica - Japan - Jordan - Kazakhstan - Kenya - Kiribati - Korea North - Korea South - Kosovo - Kuwait - Kyrgyzstan - Laos - Latvia - Lebanon - Lesotho - Liberia - Libya - Liechtenstein - Lithuania - Luxembourg - Macedonia - Madagascar - Malawi - Malaysia - Maldives - Mali - Malvinas Argentinas Islands - Malta - Marshall Islands - Mauritania - Mauritius - Mexico - Micronesia - Moldova - Monaco - Mongolia - Montenegro - Morocco - Mozambique - Myanmar - Namibia - Nauru - Nepal - Netherlands - New Zealand - Nicaragua - Niger - Nigeria - Norway - Oman - Pakistan - Palau - Palestine - Panama - Papua New Guinea - Paraguay - Peru - Philippines - Poland - Portugal - Qatar - Romania - Russia - Rwanda - St Kitts - St Lucia - Saint Vincent - Samoa - San Marino - Sao Tome Principe - Saudi Arabia - Senegal - Scotland - Serbia - Seychelles - Sierra Leone - Singapore - Slovakia - Slovenia - Solomon Islands - Somalia - South Africa - South Sudan - Spain - Sri Lanka - Sudan - Suriname - Swaziland - Sweden - Switzerland - Syria - Taiwan - Tajikistan - Tanzania - Thailand - Togo - Tonga - Trinidad Tobago - Tunisia - Turkey - Turkmenistan - Tuvalu - Uganda - Ukraine - United Arab Emirates - United Kingdom - United States - Uruguay - Uzbekistan - Vanuatu - Vatican City - Venezuela - Vietnam - Yemen - Zambia - Zimbabwe validations: required: true - type: textarea id: what-happened attributes: label: What happened? description: Use DETAILED DESCRIPTIVE information about the problem placeholder: Bug reports with full repro code and detailed information will be fixed faster. validations: required: true - type: textarea id: logs attributes: label: Standard Output Logs description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. placeholder: Bug reports with full repro code and detailed information will be fixed faster. render: shell - type: markdown attributes: value: | **Before you open a new bug...** - 32-Bit is NOT supported. - Windows older than Windows 10 is NOT supported. - Mac OSX support is Experimental. - ARM support is Experimental. - Alpine Linux support is Experimental. - Termux support is Experimental. - Check if Git main branch already have a fix for your problem. ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: Sponsor this Project url: https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e about: Toss a coin to your witcher... ================================================ FILE: .github/workflows/add-stars.yml ================================================ name: Add Stars on: [watch] jobs: addstars: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Add Stars to Readme run: | echo -e ":star: [@${{github.actor}}](https://github.com/${{github.actor}} '`date --iso-8601`')\t" >> README.md - name: Commit changes uses: elstudio/actions-js-build/commit@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PUSH_BRANCH: 'nim' ================================================ FILE: .github/workflows/antispamm.yml ================================================ name: Pull Request AntiSpamm on: [pull_request] jobs: automation: name: Repo Automation runs-on: ubuntu-latest if: ${{ !github.event.pull_request.draft && !contains(github.event.head_commit.message, '[skip ci]') }} steps: # AntiSpamm for Pull Requests: Stops single-commit PR automatically, like Hacktoberfests, Bots, Trolls, etc. - name: Must be >= 3 commits if: ${{ github.event.pull_request.commits < 3 }} uses: actions/github-script@v5 with: script: core.setFailed('AntiSpamm\tMust be >= 3 commits, make more commits to unlock.') ================================================ FILE: .github/workflows/build.yml ================================================ name: Build on: [push, pull_request] jobs: build: if: "!contains(github.event.head_commit.message, '[skip ci]')" strategy: fail-fast: false matrix: platform: [ubuntu-latest, windows-latest] python-version: ["3.7", "3.8", "3.9", "3.10", "3.12"] nim-channel: [stable, devel] name: ${{ matrix.platform }}-${{ matrix.python-version }}-${{ matrix.nim-channel }} runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 - name: Set Environment Variables uses: allenevans/set-env@v2.0.0 with: ACTIONS_ALLOW_UNSECURE_COMMANDS: true CMD: "nim doc -d:nimStrictDelete -d:nimPreviewFloatRoundtrip -d:nimPreviewDotLikeOps --gc:orc --index:on --project --experimental:strictEffects --experimental:strictFuncs --styleCheck:usages --styleCheck:hint --outdir:../../docs" - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} # - uses: pre-commit/action@v2.0.3 # if: runner.os == 'Linux' - uses: jiro4989/setup-nim-action@v1 with: nim-version: ${{ matrix.nim-channel }} - name: Nimble setup run: | nimble -y refresh nimble -y install nimpy - name: Build docs shell: bash run: | cd src/cpython/ for i in *.nim; do $CMD $i done - name: Build UPBGE docs shell: bash run: | cd src/cpython/upbge/ for i in *.nim; do $CMD $i done - name: Clean out shell: bash run: | rm --verbose --force --recursive docs/*.idx rm --verbose --force --recursive docs/nimcache/*.* rm --verbose --force --recursive docs/nimcache/runnableExamples/*.* ================================================ FILE: .github/workflows/stale.yml ================================================ name: Stale Issues & PRs on: schedule: - cron: '0 0 * * *' # workflow_dispatch: jobs: mark_stale: name: Mark issues and PRs as Stale runs-on: ubuntu-latest steps: - uses: actions/stale@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-pr-stale: 90 days-before-pr-close: 10 days-before-issue-stale: 60 days-before-issue-close: 7 stale-issue-message: > This issue is Stale because it has been open for 60 days with no activity. Contribute a fix or comment on the issue, or it will be closed in 7 days. stale-pr-message: > This pull request is Stale because it has been open for 90 days with no activity. Contribute more commits on the pull request, or it will be closed in 10 days. close-issue-message: > This issue has been marked as Stale and closed due to inactivity. close-pr-message: > This pull request has been marked as Stale and Closed due to inactivity for 100 days. ================================================ FILE: .github/workflows/welcome-new-users.yml ================================================ name: Welcome New Users on: [pull_request, issues] jobs: greeting: runs-on: ubuntu-latest steps: - uses: actions/first-interaction@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: | # Welcome ${{github.actor}} - **Remember to :star: Star the project on GitHub!.** - **Congrats for your first issue!, please provide a minimal code example that reproduces the :bug: Bug!.** Reports with full repro code and descriptive detailed information will be fixed faster. - Please, keep in mind there is ZERO FUNDING for the project!, we have no sponsors, no company behind, no dev team, :heart: Send crypto today to speed up development!:
Bitcoin BTC **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **BTC Bitcoin Network** ``` 1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi ``` **Lightning Network** ``` juancarlospaco@bitrefill.me ```
Ethereum ETH Dai DAI Uniswap UNI Axie Infinity AXS Smooth Love Potion SLP **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Tether USDT **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **TRC20 Tron Network** ``` TWGft53WgWvH2mnqR8ZUXq1GD8M4gZ4Yfu ```
Solana SOL **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **SOL Solana Network** ``` FKaPSd8kTUpH7Q76d77toy1jjPGpZSxR4xbhQHyCMSGq ```
Cardano ADA **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ADA Cardano Network** ``` DdzFFzCqrht9Y1r4Yx7ouqG9yJNWeXFt69xavLdaeXdu4cQi2yXgNWagzh52o9k9YRh3ussHnBnDrg7v7W2hSXWXfBhbo2ooUKRFMieM ```
Sandbox SAND Decentraland MANA **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Algorand ALGO **ALGO Algorand Network** ``` WM54DHVZQIQDVTHMPOH6FEZ4U2AU3OBPGAFTHSCYWMFE7ETKCUUOYAW24Q ```
Binance [https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3](https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3 "Send via Binance Pay")
pr-message: | # Welcome ${{github.actor}} - **Remember to :star: Star the project on GitHub!.** - **Congrats for your first Pull Request!, we will review your contributions very soon, and likely merge it!.** Pull Requests with detailed description of the changes and documentation on the code will be merged faster. - Please, keep in mind there is ZERO FUNDING for the project!, we have no sponsors, no company behind, no dev team, :heart: Send crypto today to speed up development!:
Bitcoin BTC **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **BTC Bitcoin Network** ``` 1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi ``` **Lightning Network** ``` juancarlospaco@bitrefill.me ```
Ethereum ETH Dai DAI Uniswap UNI Axie Infinity AXS Smooth Love Potion SLP **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Tether USDT **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **TRC20 Tron Network** ``` TWGft53WgWvH2mnqR8ZUXq1GD8M4gZ4Yfu ```
Solana SOL **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **SOL Solana Network** ``` FKaPSd8kTUpH7Q76d77toy1jjPGpZSxR4xbhQHyCMSGq ```
Cardano ADA **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ADA Cardano Network** ``` DdzFFzCqrht9Y1r4Yx7ouqG9yJNWeXFt69xavLdaeXdu4cQi2yXgNWagzh52o9k9YRh3ussHnBnDrg7v7W2hSXWXfBhbo2ooUKRFMieM ```
Sandbox SAND Decentraland MANA **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Algorand ALGO **ALGO Algorand Network** ``` WM54DHVZQIQDVTHMPOH6FEZ4U2AU3OBPGAFTHSCYWMFE7ETKCUUOYAW24Q ```
Binance [https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3](https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3 "Send via Binance Pay")
================================================ FILE: .github/workflows/wiki-on-edit.yml ================================================ # Wiki automated monitoring/antispam/changelog. name: Wiki On Edit on: gollum # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#gollum jobs: wiki_on_edit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Update Wiki Changelog run: | echo -e "- ${{github.event.repository.updated_at}}\tSHA\t [@${{github.actor}}](https://github.com/${{github.actor}} '${{github.event.sender.login}}') ${{github.event.pages[0].action}} [${{github.event.pages[0].page_name}}](${{github.event.pages[0].html_url}} '${{github.event.pages[0].title}}')." >> wiki_changelog_`date +%Y`.md - name: Commit changes uses: elstudio/actions-js-build/commit@v2 with: commitMessage: Update wiki changelog [skip ci] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PUSH_BRANCH: 'nim' ================================================ FILE: .gitignore ================================================ nimcache/ nimblecache/ htmldocs/ temp.nim temp.py _private.nim ================================================ FILE: .pre-commit-config.yaml ================================================ # Multi-Language Static Analysis. # Install on local: pip install pre-commit pre-commit-hooks # Force Run: pre-commit run --all-files # Auto-Update all hooks: pre-commit autoupdate # Run all hooks on Push: pre-commit install --hook-type pre-push # Run all hooks on Commit: pre-commit install # Uninstall hooks on Push: pre-commit uninstall --hook-type pre-push # Uninstall hooks on Commit: pre-commit uninstall # http://pre-commit.com https://github.com/pre-commit repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 # v4.0.1 Or SemVer of latest release. Or SHA1. hooks: - id: fix-byte-order-marker # Check for BOM byte-order marker on files. - id: check-case-conflict # Check conflicts for case-insensitive FS. - id: check-merge-conflict # Check for committing Unmerged files. - id: check-symlinks # Check for SymLinks pointing nowhere. - id: destroyed-symlinks # Check for broken Symlinks (if any). - id: detect-private-key # Check for committing Private Keys. - id: forbid-new-submodules # Prevent addition of new Git SubModules. - id: check-json # Check JSON files are valid (if any). - id: check-executables-have-shebangs # Check if executable have SheBang. ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2021 Juan Carlos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Alternative StdLib for Nim for Python targets ![](nim-python-hybrid0.png) ![](https://img.shields.io/github/languages/top/juancarlospaco/cpython?style=for-the-badge) ![](https://img.shields.io/github/stars/juancarlospaco/cpython?style=for-the-badge) ![](https://img.shields.io/github/languages/code-size/juancarlospaco/cpython?style=for-the-badge) ![](https://img.shields.io/github/issues-raw/juancarlospaco/cpython?style=for-the-badge "Bugs") ![](https://img.shields.io/github/issues-pr-raw/juancarlospaco/cpython?style=for-the-badge "PRs") ![](https://img.shields.io/github/last-commit/juancarlospaco/cpython?style=for-the-badge "Commits") ![](https://github.com/juancarlospaco/cpython/workflows/Build/badge.svg?branch=nim) # Documentation - :heavy_check_mark: [atexit](https://docs.python.org/3.10/library/atexit) :arrow_right: https://juancarlospaco.github.io/cpython/atexit - :heavy_check_mark: [base64](https://docs.python.org/3.10/library/base64) :arrow_right: https://juancarlospaco.github.io/cpython/base64 - :heavy_check_mark: [binascii](https://docs.python.org/3.10/library/binascii) :arrow_right: https://juancarlospaco.github.io/cpython/binascii - :heavy_check_mark: [binhex](https://docs.python.org/3.10/library/binhex) :arrow_right: https://juancarlospaco.github.io/cpython/binhex - :heavy_check_mark: [builtins](https://docs.python.org/3.10/library/builtins) :arrow_right: https://juancarlospaco.github.io/cpython/builtins - :heavy_check_mark: [bz2](https://docs.python.org/3.10/library/bz2) :arrow_right: https://juancarlospaco.github.io/cpython/bz2 - :heavy_check_mark: [cmath](https://docs.python.org/3.10/library/cmath) :arrow_right: https://juancarlospaco.github.io/cpython/cmath - :heavy_check_mark: [codecs](https://docs.python.org/3.10/library/codecs) :arrow_right: https://juancarlospaco.github.io/cpython/codecs - :heavy_check_mark: [codeop](https://docs.python.org/3.10/library/codeop) :arrow_right: https://juancarlospaco.github.io/cpython/codeop - :heavy_check_mark: [colorsys](https://docs.python.org/3.10/library/colorsys) :arrow_right: https://juancarlospaco.github.io/cpython/colorsys - :heavy_check_mark: [compileall](https://docs.python.org/3.10/library/compileall) :arrow_right: https://juancarlospaco.github.io/cpython/compileall - :heavy_check_mark: [copy](https://docs.python.org/3.10/library/copy) :arrow_right: https://juancarlospaco.github.io/cpython/copy - :heavy_check_mark: [crypt](https://docs.python.org/3.10/library/crypt) :arrow_right: https://juancarlospaco.github.io/cpython/crypt - :heavy_check_mark: [curses](https://docs.python.org/3.10/library/curses) :arrow_right: https://juancarlospaco.github.io/cpython/curses - :heavy_check_mark: [decimal](https://docs.python.org/3.10/library/decimal) :arrow_right: https://juancarlospaco.github.io/cpython/decimal - :heavy_check_mark: [dbd](https://docs.python.org/3.10/library/dbd) :arrow_right: https://juancarlospaco.github.io/cpython/dbd - :heavy_check_mark: [dis](https://docs.python.org/3.10/library/dis) :arrow_right: https://juancarlospaco.github.io/cpython/dis - :heavy_check_mark: [doctest](https://docs.python.org/3.10/library/doctest) :arrow_right: https://juancarlospaco.github.io/cpython/doctest - :heavy_check_mark: [ensurepip](https://docs.python.org/3.10/library/ensurepip) :arrow_right: https://juancarlospaco.github.io/cpython/ensurepip - :heavy_check_mark: [errno](https://docs.python.org/3.10/library/errno) :arrow_right: https://juancarlospaco.github.io/cpython/errno - :heavy_check_mark: [faulthandler](https://docs.python.org/3.10/library/faulthandler) :arrow_right: https://juancarlospaco.github.io/cpython/faulthandler - :heavy_check_mark: [fcntl](https://docs.python.org/3.10/library/fcntl) :arrow_right: https://juancarlospaco.github.io/cpython/fcntl - :heavy_check_mark: [filecmp](https://docs.python.org/3.10/library/filecmp) :arrow_right: https://juancarlospaco.github.io/cpython/filecmp - :heavy_check_mark: [fnmatch](https://docs.python.org/3.10/library/fnmatch) :arrow_right: https://juancarlospaco.github.io/cpython/fnmatch - :heavy_check_mark: [gc](https://docs.python.org/3.10/library/gc) :arrow_right: https://juancarlospaco.github.io/cpython/gc - :heavy_check_mark: [getopt](https://docs.python.org/3.10/library/getopt) :arrow_right: https://juancarlospaco.github.io/cpython/getopt - :heavy_check_mark: [getpass](https://docs.python.org/3.10/library/getpass) :arrow_right: https://juancarlospaco.github.io/cpython/getpass - :heavy_check_mark: [gettext](https://docs.python.org/3.10/library/gettext) :arrow_right: https://juancarlospaco.github.io/cpython/gettext - :heavy_check_mark: [glob](https://docs.python.org/3.10/library/glob) :arrow_right: https://juancarlospaco.github.io/cpython/glob - :heavy_check_mark: [grp](https://docs.python.org/3.10/library/grp) :arrow_right: https://juancarlospaco.github.io/cpython/grp - :heavy_check_mark: [gzip](https://docs.python.org/3.10/library/gzip) :arrow_right: https://juancarlospaco.github.io/cpython/gzip - :heavy_check_mark: [hashlib](https://docs.python.org/3.10/library/hashlib) :arrow_right: https://juancarlospaco.github.io/cpython/hashlib - :heavy_check_mark: [hmac](https://docs.python.org/3.10/library/hmac) :arrow_right: https://juancarlospaco.github.io/cpython/hmac - :heavy_check_mark: [html.entities](https://docs.python.org/3.10/library/html.entities) :arrow_right: https://juancarlospaco.github.io/cpython/html_entities - :heavy_check_mark: [imghdr](https://docs.python.org/3.10/library/imghdr) :arrow_right: https://juancarlospaco.github.io/cpython/imghdr - :heavy_check_mark: [imp](https://docs.python.org/3.10/library/imp) :arrow_right: https://juancarlospaco.github.io/cpython/imp - :heavy_check_mark: [importlib](https://docs.python.org/3.10/library/importlib) :arrow_right: https://juancarlospaco.github.io/cpython/importlib - :heavy_check_mark: [keyword](https://docs.python.org/3.10/library/keyword) :arrow_right: https://juancarlospaco.github.io/cpython/keyword - :heavy_check_mark: [linecache](https://docs.python.org/3.10/library/linecache) :arrow_right: https://juancarlospaco.github.io/cpython/linecache - :heavy_check_mark: [logging](https://docs.python.org/3.10/library/logging) :arrow_right: https://juancarlospaco.github.io/cpython/logging - :heavy_check_mark: [lzma](https://docs.python.org/3.10/library/lzma) :arrow_right: https://juancarlospaco.github.io/cpython/lzma - :heavy_check_mark: [marshal](https://docs.python.org/3.10/library/marshal) :arrow_right: https://juancarlospaco.github.io/cpython/marshal - :heavy_check_mark: [math](https://docs.python.org/3.10/library/math) :arrow_right: https://juancarlospaco.github.io/cpython/math - :heavy_check_mark: [mimetypes](https://docs.python.org/3.10/library/mimetypes) :arrow_right: https://juancarlospaco.github.io/cpython/mimetypes - :heavy_check_mark: [ntpath](https://docs.python.org/3.10/library/ntpath) :arrow_right: https://juancarlospaco.github.io/cpython/ntpath - :heavy_check_mark: [nis](https://docs.python.org/3.10/library/nis) :arrow_right: https://juancarlospaco.github.io/cpython/nis - :heavy_check_mark: [operator](https://docs.python.org/3.10/library/operator) :arrow_right: https://juancarlospaco.github.io/cpython/operator - :heavy_check_mark: [os](https://docs.python.org/3.10/library/os) :arrow_right: https://juancarlospaco.github.io/cpython/os - :heavy_check_mark: [pickle](https://docs.python.org/3.10/library/pickle) :arrow_right: https://juancarlospaco.github.io/cpython/pickle - :heavy_check_mark: [pickletools](https://docs.python.org/3.10/library/pickletools) :arrow_right: https://juancarlospaco.github.io/cpython/pickletools - :heavy_check_mark: [pkgutil](https://docs.python.org/3.10/library/pkgutil) :arrow_right: https://juancarlospaco.github.io/cpython/pkgutil - :heavy_check_mark: [posixpath](https://docs.python.org/3.10/library/posixpath) :arrow_right: https://juancarlospaco.github.io/cpython/posixpath - :heavy_check_mark: [pprint](https://docs.python.org/3.10/library/pprint) :arrow_right: https://juancarlospaco.github.io/cpython/pprint - :heavy_check_mark: [pwd](https://docs.python.org/3.10/library/pwd) :arrow_right: https://juancarlospaco.github.io/cpython/pwd - :heavy_check_mark: [py_compile](https://docs.python.org/3.10/library/py_compile) :arrow_right: https://juancarlospaco.github.io/cpython/py_compile - :heavy_check_mark: [quopri](https://docs.python.org/3.10/library/quopri) :arrow_right: https://juancarlospaco.github.io/cpython/quopri - :heavy_check_mark: [random](https://docs.python.org/3.10/library/random) :arrow_right: https://juancarlospaco.github.io/cpython/random - :heavy_check_mark: [re](https://docs.python.org/3.10/library/re) :arrow_right: https://juancarlospaco.github.io/cpython/re - :heavy_check_mark: [readline](https://docs.python.org/3.10/library/readline) :arrow_right: https://juancarlospaco.github.io/cpython/readline - :heavy_check_mark: [reprlib](https://docs.python.org/3.10/library/reprlib) :arrow_right: https://juancarlospaco.github.io/cpython/reprlib - :heavy_check_mark: [resource](https://docs.python.org/3.10/library/resource) :arrow_right: https://juancarlospaco.github.io/cpython/resource - :heavy_check_mark: [runpy](https://docs.python.org/3.10/library/runpy) :arrow_right: https://juancarlospaco.github.io/cpython/runpy - :heavy_check_mark: [secrets](https://docs.python.org/3.10/library/secrets) :arrow_right: https://juancarlospaco.github.io/cpython/secrets - :heavy_check_mark: [shutil](https://docs.python.org/3.10/library/shutil) :arrow_right: https://juancarlospaco.github.io/cpython/shutil - :heavy_check_mark: [signal](https://docs.python.org/3.10/library/signal) :arrow_right: https://juancarlospaco.github.io/cpython/signal - :heavy_check_mark: [site](https://docs.python.org/3.10/library/site) :arrow_right: https://juancarlospaco.github.io/cpython/site - :heavy_check_mark: [sndhdr](https://docs.python.org/3.10/library/sndhdr) :arrow_right: https://juancarlospaco.github.io/cpython/sndhdr - :heavy_check_mark: [spwd](https://docs.python.org/3.10/library/spwd) :arrow_right: https://juancarlospaco.github.io/cpython/spwd - :heavy_check_mark: [statistics](https://docs.python.org/3.10/library/statistics) :arrow_right: https://juancarlospaco.github.io/cpython/statistics - :heavy_check_mark: [struct](https://docs.python.org/3.10/library/struct) :arrow_right: https://juancarlospaco.github.io/cpython/struct - :heavy_check_mark: [ssl](https://docs.python.org/3.10/library/ssl) :arrow_right: https://juancarlospaco.github.io/cpython/ssl - :heavy_check_mark: [subprocess](https://docs.python.org/3.10/library/subprocess) :arrow_right: https://juancarlospaco.github.io/cpython/subprocess - :heavy_check_mark: [sys](https://docs.python.org/3.10/library/sys) :arrow_right: https://juancarlospaco.github.io/cpython/sys - :heavy_check_mark: [sysconfig](https://docs.python.org/3.10/library/sysconfig) :arrow_right: https://juancarlospaco.github.io/cpython/sysconfig - :heavy_check_mark: [syslog](https://docs.python.org/3.10/library/syslog) :arrow_right: https://juancarlospaco.github.io/cpython/syslog - :heavy_check_mark: [tabnanny](https://docs.python.org/3.10/library/tabnanny) :arrow_right: https://juancarlospaco.github.io/cpython/tabnanny - :heavy_check_mark: [tempfile](https://docs.python.org/3.10/library/tempfile) :arrow_right: https://juancarlospaco.github.io/cpython/tempfile - :heavy_check_mark: [termios](https://docs.python.org/3.10/library/termios) :arrow_right: https://juancarlospaco.github.io/cpython/termios - :heavy_check_mark: [textwrap](https://docs.python.org/3.10/library/textwrap) :arrow_right: https://juancarlospaco.github.io/cpython/textwrap - :heavy_check_mark: [timeit](https://docs.python.org/3.10/library/timeit) :arrow_right: https://juancarlospaco.github.io/cpython/timeit - :heavy_check_mark: [token](https://docs.python.org/3.10/library/token) :arrow_right: https://juancarlospaco.github.io/cpython/token - :heavy_check_mark: [tty](https://docs.python.org/3.10/library/tty) :arrow_right: https://juancarlospaco.github.io/cpython/tty - :heavy_check_mark: [turtle](https://docs.python.org/3.10/library/turtle) :arrow_right: https://juancarlospaco.github.io/cpython/turtle - :heavy_check_mark: [typing](https://docs.python.org/3.10/library/typing) :arrow_right: https://juancarlospaco.github.io/cpython/typing - :heavy_check_mark: [unicodedata](https://docs.python.org/3.10/library/unicodedata) :arrow_right: https://juancarlospaco.github.io/cpython/unicodedata - :heavy_check_mark: [uu](https://docs.python.org/3.10/library/uu) :arrow_right: https://juancarlospaco.github.io/cpython/uu - :heavy_check_mark: [uuid](https://docs.python.org/3.10/library/uuid) :arrow_right: https://juancarlospaco.github.io/cpython/uuid - :heavy_check_mark: [venv](https://docs.python.org/3.10/library/venv) :arrow_right: https://juancarlospaco.github.io/cpython/venv - :heavy_check_mark: [warnings](https://docs.python.org/3.10/library/warnings) :arrow_right: https://juancarlospaco.github.io/cpython/warnings - :heavy_check_mark: [webbrowser](https://docs.python.org/3.10/library/webbrowser) :arrow_right: https://juancarlospaco.github.io/cpython/webbrowser - :heavy_check_mark: [winsound](https://docs.python.org/3.10/library/winsound) :arrow_right: https://juancarlospaco.github.io/cpython/winsound - :heavy_check_mark: [zipapp](https://docs.python.org/3.10/library/zipapp) :arrow_right: https://juancarlospaco.github.io/cpython/zipapp - :heavy_check_mark: [zlib](https://docs.python.org/3.10/library/zlib) :arrow_right: https://juancarlospaco.github.io/cpython/zlib - :trollface: More supported modules soon... - [For more documentation, use Python official documentation, works too.](https://docs.python.org/3.10/py-modindex) # UPBGE [UPBGE](https://upbge.org) API is supported out of the box, new [UPBGE](https://upbge.org) features will be integrated. 3D Games, GUI with OpenGL and shaders, audio, video, and more... ![](upbge.gif) *Are you Gamedev?, Pull Requests welcome!.* # Design - 1 Dependency only. - 1 Nim module per 1 Python module. - Module files are <200 lines each of pure Nim code. - [Arbitrary precision big Decimals with all the operators for Nim.](https://juancarlospaco.github.io/cpython/decimal) - Compatible with ARC and ORC deterministic memory nanagement. - Enforces real strong inferred static typing with UFCS for Python. - Same API as Python StdLib, same function names, same argument names (Names starting and ending with double underscore are not legal in Nim). - Use the vanilla official Python StdLib that you already know by memory. - Same module filenames as Python StdLib, same imports as Python StdLib. - Documentation online, but also any Python documentation should work too. - Simple code using template, easy to hack for new users, [KISS](https://en.wikipedia.org/wiki/KISS_principle) & [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself). - Stuff deprecated/removed in Python before year 2020 will not be supported. - We do not deprecate stuff, even if Python deprecate/remove it, it will keep working for Nim. - Each file is completely self-contained standalone, you can copy just 1 file on your project and use it. - If Python removes a module from StdLib you must obtain the `.py` file somehow, but the `.nim` remains. - It does not use anything from Nim standard library, very future-proof (uses [Nimpy](https://github.com/yglukhov/nimpy) for Python-Nim interop, but other than that they are thin wrappers, with minimal dependency on StdLib). - Package version == Python version. - [Pet the turtle.](https://juancarlospaco.github.io/cpython/turtle) # Requisites - Python ( >`2.7` works but unsupported, >`3.5` minimal, >=`3.10` recommended ). # Install ``` nimble install cpython ``` OR ``` nimble install https://github.com/juancarlospaco/cpython.git ``` # Doing JavaScript or Web Dev ? - [Alternative StdLib for Nim for NodeJS/JavaScript targets, hijacks NodeJS StdLib for Nim.](https://github.com/juancarlospaco/nodejs#alternative-stdlib-for-nim-for-nodejsjavascript-targets) ## Why? The idea comes from [the community of "Nim en Espanol" Telegram group (Spanish).](https://t.me/NimArgentina) [![](poll.png)](https://t.me/NimArgentina) Also... - Whole new StdLib becomes usable for Nim, without Nim having to spend resources. - Showcase easy interoperability of Nim (CTypes is harder, Python is verbose, etc). - [Arbitrary precision big Decimals for Nim.](https://juancarlospaco.github.io/cpython/decimal) - Others do it too (Scala/Kotlin uses Java StbLib, Swift uses Objective-C StdLib, etc). - Python does it too, Python is written in C therefore using C StdLib. - Make others work improving libs that you can use in Nim. - A place to pile up "Nim-ified" Python stuff. # See also - [**For Python Programmers**](https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers#table-of-contents) - [Nim integration for Python PIP](https://github.com/juancarlospaco/choosenim_install#nim-integration-for-python-pip) - [Python modules Deprecated from Python StdLib for download](https://github.com/tiran/legacylib) ([PEP594](https://www.python.org/dev/peps/pep-0594)) # 💰➡️🍕
Bitcoin BTC **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **BTC Bitcoin Network** ``` 1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi ``` **Lightning Network** ``` juancarlospaco@bitrefill.me ```
Ethereum ETH Dai DAI Uniswap UNI Axie Infinity AXS Smooth Love Potion SLP Uniswap UNI USDC **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Tether USDT **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **TRC20 Tron Network** ``` TWGft53WgWvH2mnqR8ZUXq1GD8M4gZ4Yfu ```
Solana SOL **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **SOL Solana Network** ``` FKaPSd8kTUpH7Q76d77toy1jjPGpZSxR4xbhQHyCMSGq ```
Cardano ADA **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ``` **ADA Cardano Network** ``` DdzFFzCqrht9Y1r4Yx7ouqG9yJNWeXFt69xavLdaeXdu4cQi2yXgNWagzh52o9k9YRh3ussHnBnDrg7v7W2hSXWXfBhbo2ooUKRFMieM ```
Sandbox SAND Decentraland MANA **ERC20 Ethereum Network** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Algorand ALGO **ALGO Algorand Network** ``` WM54DHVZQIQDVTHMPOH6FEZ4U2AU3OBPGAFTHSCYWMFE7ETKCUUOYAW24Q ```
Polkadot DOT **DOT Network** ``` 13GdxHQbQA1K6i7Ctf781nQkhQhoVhGgUnrjn9EvcJnYWCEd ``` **BEP20 Binance Smart Chain Network BSC** ``` 0xb78c4cf63274bb22f83481986157d234105ac17e ```
Binance [https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3](https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3 "Send via Binance Pay")
# Stars ![](https://starchart.cc/juancarlospaco/cpython.svg) :star: [@juancarlospaco](https://github.com/juancarlospaco '2022-02-15') :star: [@aguspiza](https://github.com/aguspiza '2022-02-20') :star: [@AndrielFR](https://github.com/AndrielFR '2022-02-27') :star: [@S0Sbrigade8](https://github.com/S0Sbrigade8 '2022-03-15') :star: [@aphkyle](https://github.com/aphkyle '2022-03-15') :star: [@jhgalino](https://github.com/jhgalino '2022-04-02') :star: [@YanMu2020](https://github.com/YanMu2020 '2022-04-04') :star: [@matkuki](https://github.com/matkuki '2022-04-14') :star: [@Traumatism](https://github.com/Traumatism '2022-04-21') :star: [@foxoman](https://github.com/foxoman '2022-05-19') :star: [@whee](https://github.com/whee '2022-05-21') :star: [@bakarilevy](https://github.com/bakarilevy '2022-06-23') :star: [@Ryu1845](https://github.com/Ryu1845 '2022-06-24') :star: [@babaloveyou](https://github.com/babaloveyou '2022-07-16') :star: [@jdbernard](https://github.com/jdbernard '2022-08-15') :star: [@cyraxjoe](https://github.com/cyraxjoe '2022-09-04') :star: [@zendbit](https://github.com/zendbit '2022-09-05') :star: [@vovavili](https://github.com/vovavili '2022-09-09') :star: [@xujin8](https://github.com/xujin8 '2022-09-18') :star: [@Geksan](https://github.com/Geksan '2022-09-24') :star: [@shxdow](https://github.com/shxdow '2022-10-05') :star: [@singularperturbation](https://github.com/singularperturbation '2022-10-06') :star: [@adokitkat](https://github.com/adokitkat '2022-10-09') :star: [@luisacosta828](https://github.com/luisacosta828 '2022-10-15') :star: [@ByK95](https://github.com/ByK95 '2022-11-04') :star: [@daweedkob](https://github.com/daweedkob '2022-11-04') :star: [@Quantum-Codes](https://github.com/Quantum-Codes '2022-11-05') :star: [@qununc](https://github.com/qununc '2022-11-06') :star: [@AriesFoxgirl](https://github.com/AriesFoxgirl '2022-11-06') :star: [@Braden-Preston](https://github.com/Braden-Preston '2022-11-07') :star: [@AriesFoxgirl](https://github.com/AriesFoxgirl '2022-11-13') :star: [@mahmoudimus](https://github.com/mahmoudimus '2022-11-13') :star: [@terretta](https://github.com/terretta '2022-11-26') :star: [@AndrewGPU](https://github.com/AndrewGPU '2022-12-04') :star: [@themorya](https://github.com/themorya '2022-12-04') :star: [@zimitz](https://github.com/zimitz '2022-12-13') :star: [@tommo](https://github.com/tommo '2022-12-14') :star: [@rlipsc](https://github.com/rlipsc '2022-12-22') :star: [@jyapayne](https://github.com/jyapayne '2022-12-22') :star: [@barseghyanartur](https://github.com/barseghyanartur '2022-12-25') :star: [@tiberiuichim](https://github.com/tiberiuichim '2022-12-25') :star: [@yuchunzhou](https://github.com/yuchunzhou '2022-12-27') :star: [@lf-araujo](https://github.com/lf-araujo '2023-01-01') :star: [@pietroppeter](https://github.com/pietroppeter '2023-01-11') :star: [@arkanoid87](https://github.com/arkanoid87 '2023-01-18') :star: [@jgdevop](https://github.com/jgdevop '2023-01-18') :star: [@onoe-serika](https://github.com/onoe-serika '2023-01-22') :star: [@shizhaojingszj](https://github.com/shizhaojingszj '2023-01-22') :star: [@W1M0R](https://github.com/W1M0R '2023-02-14') :star: [@genbtc](https://github.com/genbtc '2023-02-14') :star: [@buster-blue](https://github.com/buster-blue '2023-02-17') :star: [@Megamegamium](https://github.com/Megamegamium '2023-02-26') :star: [@1MarcosDev](https://github.com/1MarcosDev '2023-02-26') :star: [@lightcax](https://github.com/lightcax '2023-02-28') :star: [@termermc](https://github.com/termermc '2023-04-27') :star: [@catsmells](https://github.com/catsmells '2023-04-28') :star: [@maleyva1](https://github.com/maleyva1 '2023-05-18') :star: [@all-an](https://github.com/all-an '2023-05-24') :star: [@janflyborg](https://github.com/janflyborg '2023-06-03') :star: [@smeggingsmegger](https://github.com/smeggingsmegger '2023-06-10') :star: [@ArikRahman](https://github.com/ArikRahman '2023-06-27') :star: [@KolyaRS](https://github.com/KolyaRS '2023-07-18') :star: [@jinczing](https://github.com/jinczing '2023-08-15') :star: [@jason-chandler](https://github.com/jason-chandler '2023-09-11') :star: [@lolgab](https://github.com/lolgab '2023-09-11') :star: [@melMass](https://github.com/melMass '2023-09-24') :star: [@xgr](https://github.com/xgr '2023-09-24') :star: [@majj](https://github.com/majj '2023-10-01') :star: [@dseeni](https://github.com/dseeni '2023-10-03') :star: [@jmgomez](https://github.com/jmgomez '2023-10-06') :star: [@shaoxie1986](https://github.com/shaoxie1986 '2023-10-08') :star: [@wjl12](https://github.com/wjl12 '2023-10-09') :star: [@cammclain](https://github.com/cammclain '2023-11-21') :star: [@Optimax125](https://github.com/Optimax125 '2023-11-25') :star: [@hanok2](https://github.com/hanok2 '2023-12-22') :star: [@KhazAkar](https://github.com/KhazAkar '2024-01-05') :star: [@rxx](https://github.com/rxx '2024-03-02') :star: [@FI-Mihej](https://github.com/FI-Mihej '2024-03-15') :star: [@davidvfx07](https://github.com/davidvfx07 '2024-03-28') :star: [@gnusec](https://github.com/gnusec '2024-04-25') :star: [@ziggertonziggy](https://github.com/ziggertonziggy '2024-05-10') :star: [@neroist](https://github.com/neroist '2024-05-13') :star: [@Bimzzzzz](https://github.com/Bimzzzzz '2024-05-22') :star: [@tuanductran](https://github.com/tuanductran '2024-05-29') :star: [@Zira3l137](https://github.com/Zira3l137 '2024-06-23') :star: [@ranjian0](https://github.com/ranjian0 '2024-07-02') :star: [@drewbitt](https://github.com/drewbitt '2024-07-11') :star: [@taylourchristian](https://github.com/taylourchristian '2024-07-13') :star: [@seruman](https://github.com/seruman '2024-07-17') :star: [@corv89](https://github.com/corv89 '2024-10-26') :star: [@pkulev](https://github.com/pkulev '2024-12-12') :star: [@marioboi3112](https://github.com/marioboi3112 '2024-12-15') :star: [@planetis-m](https://github.com/planetis-m '2025-01-24') :star: [@shaneish](https://github.com/shaneish '2025-02-18') :star: [@trinhminhtriet](https://github.com/trinhminhtriet '2025-03-27') :star: [@jtonsing](https://github.com/jtonsing '2025-05-24') :star: [@kalaverin](https://github.com/kalaverin '2025-07-03') :star: [@svaite](https://github.com/svaite '2025-10-21') :star: [@hasansezertasan](https://github.com/hasansezertasan '2025-10-30') :star: [@moncefdhk999](https://github.com/moncefdhk999 '2025-11-23') :star: [@jeansossmeier](https://github.com/jeansossmeier '2025-11-27') :star: [@seanstrom](https://github.com/seanstrom '2025-12-06') :star: [@Miqueas](https://github.com/Miqueas '2026-01-18') :star: [@fmalina](https://github.com/fmalina '2026-02-07') :star: [@Dregacorp](https://github.com/Dregacorp '2026-02-12') :star: [@kylesinlynn](https://github.com/kylesinlynn '2026-03-19') :star: [@nilslindemann](https://github.com/nilslindemann '2026-05-05') :star: [@vvsagar](https://github.com/vvsagar '2026-05-10') :star: [@a07087263-cmyk](https://github.com/a07087263-cmyk '2026-05-22') ================================================ FILE: cpython.nimble ================================================ version = "3.12.0" author = "Juan_Carlos.nim" description = "Alternative StdLib for Nim for Python targets" license = "MIT" srcDir = "src" skipDirs = @["docs"] requires "nim >= 1.0.0" requires "nimpy" ================================================ FILE: docs/atexit.html ================================================ src/cpython/atexit

src/cpython/atexit

    Dark Mode
Search:
Group by:
================================================ FILE: docs/base64.html ================================================ src/cpython/base64

src/cpython/base64

Procs

proc b64encode(s, altchars: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b64encode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b64decode(s, altchars: string; validate = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b64decode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc standard_b64encode(s: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc standard_b64decode(s: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc urlsafe_b64encode(s: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc urlsafe_b64decode(s: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b32encode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b32decode(s: string; casefold = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b32hexencode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b32hexdecode(s: string; casefold = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b16encode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b16decode(s: string; casefold = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc a85encode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a85decode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b85encode(s: string; pad = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b85decode(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc decodebytes(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc encodebytes(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/bgl.html ================================================ src/cpython/upbge/bgl

src/cpython/upbge/bgl

    Dark Mode
Search:
Group by:

Procs

proc glActiveTexture(texture: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glAttachShader(program, shader: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glBindTexture(target: int; texture: uint) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glBlendFunc(sfactor, dfactor: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glClear(mask: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glClearColor(red, green, blue, alpha: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glClearDepth(depth: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glClearStencil(s: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glClipPlane(plane: int; equation: auto)
proc glColor(red, green, blue, alpha: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glColorMask(red, green, blue, alpha: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glCompileShader(shader: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glCopyTexImage2D(target, level, internalformat, x, y, width, height, border: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glCreateProgram(): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glCreateShader(shaderType: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glCullFace(mode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glDeleteProgram(program: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glDeleteShader(shader: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glDeleteTextures(n: int; textures: auto)
proc glDepthFunc(fun: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glDepthMask(flag: int or bool)
proc glDepthRange(zNear, zFar: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glDetachShader(program, shader: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glDisable(cap: int) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glDrawBuffer(mode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glEdgeFlag(flag: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glEnable(cap: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glEvalCoord(u, v: auto)
proc glEvalMesh(mode, i1, i2: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glEvalPoint(i, j: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glFeedbackBuffer(size, tipe: int; buffer: auto)
proc glFinish() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glFlush() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError],
                 tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glFog(pname: int; param: auto)
proc glFrontFace(mode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glGenTextures(n: int; textures: auto)
proc glGet(pname: int; param: auto)
proc glGetAttachedShaders(program, maxCount: int; count, shaders: auto)
proc glGetError(): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glGetLight(light, pname: int; params: auto)
proc glGetMap(target, query: int; v: auto)
proc glGetProgramInfoLog(program, maxLength: int; length, infoLog: auto)
proc glGetProgramiv(program, pname: int; params: auto)
proc glGetShaderInfoLog(program, maxLength: int; length, infoLog: auto)
proc glGetShaderSource(shader, bufSize: int; length, source: auto)
proc glGetString(name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glGetTexLevelParameter(target, level, pname: int; params: auto)
proc glHint(target, mode: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glIsEnabled(cap: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glIsProgram(program: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glIsShader(shader: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glIsTexture(texture: uint): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glLight(light, pname: int; param: auto)
proc glLightModel(pname: int; param: auto)
proc glLineWidth(width: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glLinkProgram(program: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glLoadMatrix(m: auto)
proc glLogicOp(opcode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glMap1(target, u1, u2, stride, order: int; points: auto)
proc glMap2(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder: int;
            points: auto)
proc glMapGrid(un, u1, u2, vn, v1, v2: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glMaterial(face, pname, params: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glMultMatrix(m: auto)
proc glNormal3(nx, ny, nz: int; v: auto)
proc glPixelMap(map, mapsize: int; values: auto)
proc glPixelStore(pname: int; param: auto)
proc glPixelTransfer(pname: int; param: auto)
proc glPointSize(size: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glPolygonMode(face, mode: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glPolygonOffset(factor, units: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glRasterPos(x, y, z, w: int or float)
proc glReadBuffer(mode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glReadPixels(x, y, width, height, format, tipe: int; pixels: auto)
proc glRect(x1, y1, x2, y2, v1, v2: float or int)
proc glRotate(angle: auto; x, y, z: float or int)
proc glScale(x, y, z: float or int)
proc glScissor(x, y, width, height: float or int)
proc glShaderSource(shader: int; shader_string: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glStencilFunc(fun, refe: int; mask: uint) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glStencilMask(mask: uint) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glStencilOp(fail, zfail, zpass: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc glTexCoord(s, t, r, q: int; v: auto)
proc glTexEnv(target, pname: int; param: auto)
proc glTexGen(coord, pname: int; param: auto)
proc glTexImage1D(target, level, internalformat, width, border, format, tipe: int;
                  pixels: auto)
proc glTexImage2D(target, level, internalformat, width, height, border, format,
                  tipe: int; pixels: auto)
proc glTexParameter(target, pname: int; param: auto)
proc glTranslate(x, y, z: int or float)
proc glUseProgram(program: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc glViewport(x, y, width, height: int or float)
================================================ FILE: docs/binascii.html ================================================ src/cpython/binascii

src/cpython/binascii

Procs

proc hexlify(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a2b_hex(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc unhexlify(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b2a_hex(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a2b_uu(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b2a_uu(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a2b_base64(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b2a_base64(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a2b_hqx(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc rledecode_hqx(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc rlecode_hqx(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc b2a_hqx(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc crc_hqx(data, value: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc crc32(data, value: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc crc32(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc a2b_qp(s: string; header = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b2a_hex(data: string; sep: char; bytes_per_sep = 1): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc hexlify(data: string; sep: char; bytes_per_sep = 1): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc b2a_qp(s: string; quotetabs = false; istext = true; header = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/binhex.html ================================================ src/cpython/binhex

src/cpython/binhex

    Dark Mode
Search:
Group by:

Procs

proc binhex(input, output: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc hexbin(input, output: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/bl_math.html ================================================ src/cpython/upbge/bl_math

src/cpython/upbge/bl_math

Procs

proc clamp(value: float; min = 0.0; max = 1.0): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc lerp(frm, to, factor: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc smoothstep(frm, to, factor: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/blf.html ================================================ src/cpython/upbge/blf

src/cpython/upbge/blf

Lets

CLIPPING: int = to(getAttr(pyImport("blf"), "CLIPPING"), int)
KERNING_DEFAULT: int = to(getAttr(pyImport("blf"), "KERNING_DEFAULT"), int)
MONOCHROME: int = to(getAttr(pyImport("blf"), "MONOCHROME"), int)
ROTATION: int = to(getAttr(pyImport("blf"), "ROTATION"), int)
SHADOW: int = to(getAttr(pyImport("blf"), "SHADOW"), int)
WORD_WRAP: int = to(getAttr(pyImport("blf"), "WORD_WRAP"), int)

Procs

proc aspect(fontid: int; aspect: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc clipping(fontid: int; xmin, ymin, xmax, ymax: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc color(fontid: int; r, g, b, a: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc dimensions(fontid: int; text: string): tuple[width, height: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc disable(fontid, option: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc draw(fontid: int; text: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc enable(fontid, option: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc load(filename: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc position(fontid: int; x, y, z: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc rotation(fontid: int; angle: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc shadow(fontid: int; level: 0 .. 5; r, g, b, a: 0.0 .. 1.0) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc shadow_offset(fontid: int; x, y: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc size(fontid, size, dpi: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc unload(filename: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc word_wrap(fontid, wrap_width: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/bpy_app_icons.html ================================================ src/cpython/upbge/bpy_app_icons

src/cpython/upbge/bpy_app_icons

    Dark Mode
Search:
Group by:

Procs

proc new_triangles(rang, coords, colors: auto): int
proc new_triangles_from_file(filename: string): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc release(icon_id: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/bpy_app_timers.html ================================================ src/cpython/upbge/bpy_app_timers

src/cpython/upbge/bpy_app_timers

Procs

proc is_registered(function: auto): bool
proc register(function: auto; first_interval = 0; persistent = false)
proc unregister(function: auto)
================================================ FILE: docs/bpy_app_translations.html ================================================ src/cpython/upbge/bpy_app_translations

src/cpython/upbge/bpy_app_translations

Procs

proc locale_explode(locale: string): tuple[
    language, country, variant, language_country, language_variant: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext(msgid, msgctxt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext(msgid: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc pgettext_data(msgid, msgctxt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext_data(msgid: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext_iface(msgid, msgctxt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext_iface(msgid: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext_tip(msgid, msgctxt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc pgettext_tip(msgid: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc unregister(module_name: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/bpy_msgbus.html ================================================ src/cpython/upbge/bpy_msgbus

src/cpython/upbge/bpy_msgbus

Procs

proc clear_by_owner(owner: auto)
proc publish_rna(key: auto)
proc subscribe_rna(key, owner, args, notify, options: auto)
proc subscribe_rna(key, owner, args, notify: auto)
================================================ FILE: docs/bpy_path.html ================================================ src/cpython/upbge/bpy_path

src/cpython/upbge/bpy_path

Procs

proc abspath(path, start, library: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc abspath(path, start: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc abspath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc basename(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc clean_name(name: string; replace = "_"): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc display_name(name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc display_name_from_filepath(name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc display_name_to_filepath(name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc ensure_ext(filepath, ext: string; case_sensitive = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc is_subdir(path, directory: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc module_names(path: string; recursive = false): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc native_pathsep(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc reduce_dirs(dirs: seq[string]): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc relpath(path, start: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc relpath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc resolve_ncase(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/bpy_utils.html ================================================ src/cpython/upbge/bpy_utils

src/cpython/upbge/bpy_utils

    Dark Mode
Search:
Group by:

Procs

proc blend_paths(absolute = false; packed = false; local = false): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc escape_identifier(str: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc execfile(filepath: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc keyconfig_init() {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc keyconfig_set(filepath: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc load_scripts(reload_scripts = false; refresh_scripts = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc make_rna_paths(struct_name, prop_name, enum_name: string): (string, string,
    string) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError],
              tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc preset_find(name, preset_path: string; display_name = false; ext = ".py"): seq[
    string] {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError],
              tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc preset_paths(subdir: string): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc refresh_script_paths() {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc register_class(class: auto)
proc register_manual_map(manual_hook: auto)
proc register_tool(tool_cls: auto)
proc resource_path(tipe: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc resource_path(tipe: string; major: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc resource_path(tipe: string; major: int; minor: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc script_path_pref(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc script_path_user(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc script_paths(subdir: string; user_pref = true; check_all = false;
                  use_user = true): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc smpte_from_frame(frame, fps, fps_base: int or float): string
proc smpte_from_frame(frame, fps: int or float): string
proc smpte_from_frame(frame: int or float): string
proc smpte_from_seconds(frame, fps, fps_base: int or float): string
proc smpte_from_seconds(frame, fps: int or float): string
proc smpte_from_seconds(frame: int or float): string
proc unescape_identifier(str: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc unregister_class(class: auto)
proc unregister_manual_map(manual_hook: auto)
proc unregister_tool(tool_cls: auto)
proc user_resource(resource_type: string; path = ""; create = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/bpy_utils_units.html ================================================ src/cpython/upbge/bpy_utils_units

src/cpython/upbge/bpy_utils_units

Procs

proc to_string(unit_system, unit_category: string; value: float; precision = 3;
               split_unit = false; compatible_unit = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc to_value(unit_system, unit_category, str_input, str_ref_unit: string): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc to_value(unit_system, unit_category, str_input: string): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/builtins.html ================================================ src/cpython/builtins

src/cpython/builtins

Lets

copyright: string = to(getAttr(pyImport("builtins"), "copyright"), string)
credits: string = to(getAttr(pyImport("builtins"), "credits"), string)
license: string = to(getAttr(pyImport("builtins"), "license"), string)

Procs

proc abs(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc abs(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc all(iterable: seq[auto]): bool
proc ascii(obj: auto): string
proc bin(x: int): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc callable(obj: auto): bool
proc chr(i: int): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc delattr(obj: auto; name: string)
proc dir(obj: auto): seq[string]
proc eval(expression: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc exec(obj: auto)
proc hasattr(obj: auto; name: string): bool
proc hash(obj: auto): int
proc help(obj: auto)
proc hex(obj: auto): string
proc id(obj: auto): int
proc input(prompt: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc oct(x: int): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc pow(x, y, z: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc pow(x, y, z: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pow(x, y: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc pow(x, y: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc print(obj: auto; sep = ' '; ends = '\n')
proc repr(obj: auto): string
proc round(number: float; ndigits: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setattr(obj: auto; name: string; value: auto)
proc sorted(iterable: seq[int]): seq[int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sorted(iterable: seq[char]): seq[char] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sorted(iterable: seq[bool]): seq[bool] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sorted(iterable: seq[float]): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sorted(iterable: seq[string]): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sum(iterable: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sum(iterable: seq[float]): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc format(value: auto; format_spec: string): string
proc divmod(a, b: int): tuple[quotient, remainder: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc divmod(a, b: float): tuple[quotient, remainder: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile(source, filename, mode: string; flags = 0; dont_inherit = false;
             optimize = -1) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/bz2.html ================================================ src/cpython/bz2

src/cpython/bz2

    Dark Mode
Search:
Group by:

Procs

proc compress(data: string; compresslevel = 9): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decompress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/cmath.html ================================================ src/cpython/cmath

src/cpython/cmath

Procs

proc exp(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc exp(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc log(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc log(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc phase(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc phase(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc log10(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc log10(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc sqrt(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc sqrt(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc acos(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc acos(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc asin(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc asin(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc atan(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc atan(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc cos(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc cos(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc sin(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc sin(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc tan(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc tan(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc acosh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc acosh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc asinh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc asinh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc atanh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc atanh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc cosh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc cosh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc sinh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc sinh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc tanh(x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc tanh(x: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc isinf(x: float): bool {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc isnan(x: float): bool {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc polar(x: int): tuple[r, phi: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc polar(x: float): tuple[r, phi: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc isfinite(x: float): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc log(x: int; base: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc log(x: float; base: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc isclose(a, b: float): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/codecs.html ================================================ src/cpython/codecs

src/cpython/codecs

Procs

proc encode(obj: string; encoding = "utf-8"; errors = "strict"): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decode(obj: string; encoding = "utf-8"; errors = "strict"): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/codeop.html ================================================ src/cpython/codeop

src/cpython/codeop

    Dark Mode
Search:
Group by:

Procs

proc compile_command(source: string; filename = "<input>"; symbol = "single") {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/colorsys.html ================================================ src/cpython/colorsys

src/cpython/colorsys

Procs

proc rgb_to_yiq(red, green, blue: float): tuple[y, i, q: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc yiq_to_rgb(y, i, q: float): tuple[red, green, blue: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc rgb_to_hls(red, green, blue: float): tuple[
    hue, lightness, saturation: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc hls_to_rgb(hue, lightness, saturation: float): tuple[
    red, green, blue: float] {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc rgb_to_hsv(red, green, blue: float): tuple[hue, saturation, value: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc hsv_to_rgb(hue, saturation, value: float): tuple[red, green, blue: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/compileall.html ================================================ src/cpython/compileall

src/cpython/compileall

Procs

proc compile_dir(dir: string; maxlevels: int; ddir: string; force = false): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile_dir(dir: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc compile_file(fullname: string; ddir: string; force = false): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile_file(fullname: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile_path(skip_curdir = true; maxlevels = 0; force = false; quiet = 0;
                  legacy = false; optimize = -1): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/copy.html ================================================ src/cpython/copy

src/cpython/copy

    Dark Mode
Search:
Group by:

Procs

proc deepcopy(x: auto): auto
proc copy(x: auto): auto
================================================ FILE: docs/crypt.html ================================================ src/cpython/crypt

src/cpython/crypt

    Dark Mode
Search:
Group by:

Procs

proc crypt(word: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc crypt(word, salt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mksalt(): string {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/curses.html ================================================ src/cpython/curses

src/cpython/curses

    Dark Mode
Search:
Group by:

Lets

ERR: int = to(getAttr(pyImport("curses"), "ERR"), int)
OK: int = to(getAttr(pyImport("curses"), "OK"), int)
version: int = to(getAttr(pyImport("curses"), "version"), int)
A_ALTCHARSET: int = to(getAttr(pyImport("curses"), "A_ALTCHARSET"), int)
A_BLINK: int = to(getAttr(pyImport("curses"), "A_BLINK"), int)
A_BOLD: int = to(getAttr(pyImport("curses"), "A_BOLD"), int)
A_DIM: int = to(getAttr(pyImport("curses"), "A_DIM"), int)
A_INVIS: int = to(getAttr(pyImport("curses"), "A_INVIS"), int)
A_ITALIC: int = to(getAttr(pyImport("curses"), "A_ITALIC"), int)
A_NORMAL: int = to(getAttr(pyImport("curses"), "A_NORMAL"), int)
A_PROTECT: int = to(getAttr(pyImport("curses"), "A_PROTECT"), int)
A_REVERSE: int = to(getAttr(pyImport("curses"), "A_REVERSE"), int)
A_STANDOUT: int = to(getAttr(pyImport("curses"), "A_STANDOUT"), int)
A_UNDERLINE: int = to(getAttr(pyImport("curses"), "A_UNDERLINE"), int)
A_HORIZONTAL: int = to(getAttr(pyImport("curses"), "A_HORIZONTAL"), int)
A_LEFT: int = to(getAttr(pyImport("curses"), "A_LEFT"), int)
A_LOW: int = to(getAttr(pyImport("curses"), "A_LOW"), int)
A_RIGHT: int = to(getAttr(pyImport("curses"), "A_RIGHT"), int)
A_TOP: int = to(getAttr(pyImport("curses"), "A_TOP"), int)
A_VERTICAL: int = to(getAttr(pyImport("curses"), "A_VERTICAL"), int)
A_CHARTEXT: int = to(getAttr(pyImport("curses"), "A_CHARTEXT"), int)
A_ATTRIBUTES: int = to(getAttr(pyImport("curses"), "A_ATTRIBUTES"), int)
A_COLOR: int = to(getAttr(pyImport("curses"), "A_COLOR"), int)
KEY_MIN: int = to(getAttr(pyImport("curses"), "KEY_MIN"), int)
KEY_BREAK: int = to(getAttr(pyImport("curses"), "KEY_BREAK"), int)
KEY_DOWN: int = to(getAttr(pyImport("curses"), "KEY_DOWN"), int)
KEY_UP: int = to(getAttr(pyImport("curses"), "KEY_UP"), int)
KEY_LEFT: int = to(getAttr(pyImport("curses"), "KEY_LEFT"), int)
KEY_RIGHT: int = to(getAttr(pyImport("curses"), "KEY_RIGHT"), int)
KEY_HOME: int = to(getAttr(pyImport("curses"), "KEY_HOME"), int)
KEY_BACKSPACE: int = to(getAttr(pyImport("curses"), "KEY_BACKSPACE"), int)
KEY_F0: int = to(getAttr(pyImport("curses"), "KEY_F0"), int)
KEY_Fn: int = to(getAttr(pyImport("curses"), "KEY_Fn"), int)
KEY_DL: int = to(getAttr(pyImport("curses"), "KEY_DL"), int)
KEY_IL: int = to(getAttr(pyImport("curses"), "KEY_IL"), int)
KEY_DC: int = to(getAttr(pyImport("curses"), "KEY_DC"), int)
KEY_IC: int = to(getAttr(pyImport("curses"), "KEY_IC"), int)
KEY_EIC: int = to(getAttr(pyImport("curses"), "KEY_EIC"), int)
KEY_CLEAR: int = to(getAttr(pyImport("curses"), "KEY_CLEAR"), int)
KEY_EOS: int = to(getAttr(pyImport("curses"), "KEY_EOS"), int)
KEY_EOL: int = to(getAttr(pyImport("curses"), "KEY_EOL"), int)
KEY_SF: int = to(getAttr(pyImport("curses"), "KEY_SF"), int)
KEY_SR: int = to(getAttr(pyImport("curses"), "KEY_SR"), int)
KEY_NPAGE: int = to(getAttr(pyImport("curses"), "KEY_NPAGE"), int)
KEY_PPAGE: int = to(getAttr(pyImport("curses"), "KEY_PPAGE"), int)
KEY_STAB: int = to(getAttr(pyImport("curses"), "KEY_STAB"), int)
KEY_CTAB: int = to(getAttr(pyImport("curses"), "KEY_CTAB"), int)
KEY_CATAB: int = to(getAttr(pyImport("curses"), "KEY_CATAB"), int)
KEY_ENTER: int = to(getAttr(pyImport("curses"), "KEY_ENTER"), int)
KEY_SRESET: int = to(getAttr(pyImport("curses"), "KEY_SRESET"), int)
KEY_RESET: int = to(getAttr(pyImport("curses"), "KEY_RESET"), int)
KEY_PRINT: int = to(getAttr(pyImport("curses"), "KEY_PRINT"), int)
KEY_LL: int = to(getAttr(pyImport("curses"), "KEY_LL"), int)
KEY_A1: int = to(getAttr(pyImport("curses"), "KEY_A1"), int)
KEY_A3: int = to(getAttr(pyImport("curses"), "KEY_A3"), int)
KEY_B2: int = to(getAttr(pyImport("curses"), "KEY_B2"), int)
KEY_C1: int = to(getAttr(pyImport("curses"), "KEY_C1"), int)
KEY_C3: int = to(getAttr(pyImport("curses"), "KEY_C3"), int)
KEY_BTAB: int = to(getAttr(pyImport("curses"), "KEY_BTAB"), int)
KEY_BEG: int = to(getAttr(pyImport("curses"), "KEY_BEG"), int)
KEY_CANCEL: int = to(getAttr(pyImport("curses"), "KEY_CANCEL"), int)
KEY_CLOSE: int = to(getAttr(pyImport("curses"), "KEY_CLOSE"), int)
KEY_COMMAND: int = to(getAttr(pyImport("curses"), "KEY_COMMAND"), int)
KEY_COPY: int = to(getAttr(pyImport("curses"), "KEY_COPY"), int)
KEY_CREATE: int = to(getAttr(pyImport("curses"), "KEY_CREATE"), int)
KEY_END: int = to(getAttr(pyImport("curses"), "KEY_END"), int)
KEY_EXIT: int = to(getAttr(pyImport("curses"), "KEY_EXIT"), int)
KEY_FIND: int = to(getAttr(pyImport("curses"), "KEY_FIND"), int)
KEY_HELP: int = to(getAttr(pyImport("curses"), "KEY_HELP"), int)
KEY_MARK: int = to(getAttr(pyImport("curses"), "KEY_MARK"), int)
KEY_MESSAGE: int = to(getAttr(pyImport("curses"), "KEY_MESSAGE"), int)
KEY_MOVE: int = to(getAttr(pyImport("curses"), "KEY_MOVE"), int)
KEY_NEXT: int = to(getAttr(pyImport("curses"), "KEY_NEXT"), int)
KEY_OPEN: int = to(getAttr(pyImport("curses"), "KEY_OPEN"), int)
KEY_OPTIONS: int = to(getAttr(pyImport("curses"), "KEY_OPTIONS"), int)
KEY_PREVIOUS: int = to(getAttr(pyImport("curses"), "KEY_PREVIOUS"), int)
KEY_REDO: int = to(getAttr(pyImport("curses"), "KEY_REDO"), int)
KEY_REFERENCE: int = to(getAttr(pyImport("curses"), "KEY_REFERENCE"), int)
KEY_REFRESH: int = to(getAttr(pyImport("curses"), "KEY_REFRESH"), int)
KEY_REPLACE: int = to(getAttr(pyImport("curses"), "KEY_REPLACE"), int)
KEY_RESTART: int = to(getAttr(pyImport("curses"), "KEY_RESTART"), int)
KEY_RESUME: int = to(getAttr(pyImport("curses"), "KEY_RESUME"), int)
KEY_SAVE: int = to(getAttr(pyImport("curses"), "KEY_SAVE"), int)
KEY_SBEG: int = to(getAttr(pyImport("curses"), "KEY_SBEG"), int)
KEY_SCANCEL: int = to(getAttr(pyImport("curses"), "KEY_SCANCEL"), int)
KEY_SCOMMAND: int = to(getAttr(pyImport("curses"), "KEY_SCOMMAND"), int)
KEY_SCOPY: int = to(getAttr(pyImport("curses"), "KEY_SCOPY"), int)
KEY_SCREATE: int = to(getAttr(pyImport("curses"), "KEY_SCREATE"), int)
KEY_SDC: int = to(getAttr(pyImport("curses"), "KEY_SDC"), int)
KEY_SDL: int = to(getAttr(pyImport("curses"), "KEY_SDL"), int)
KEY_SELECT: int = to(getAttr(pyImport("curses"), "KEY_SELECT"), int)
KEY_SEND: int = to(getAttr(pyImport("curses"), "KEY_SEND"), int)
KEY_SEOL: int = to(getAttr(pyImport("curses"), "KEY_SEOL"), int)
KEY_SEXIT: int = to(getAttr(pyImport("curses"), "KEY_SEXIT"), int)
KEY_SFIND: int = to(getAttr(pyImport("curses"), "KEY_SFIND"), int)
KEY_SHELP: int = to(getAttr(pyImport("curses"), "KEY_SHELP"), int)
KEY_SHOME: int = to(getAttr(pyImport("curses"), "KEY_SHOME"), int)
KEY_SIC: int = to(getAttr(pyImport("curses"), "KEY_SIC"), int)
KEY_SLEFT: int = to(getAttr(pyImport("curses"), "KEY_SLEFT"), int)
KEY_SMESSAGE: int = to(getAttr(pyImport("curses"), "KEY_SMESSAGE"), int)
KEY_SMOVE: int = to(getAttr(pyImport("curses"), "KEY_SMOVE"), int)
KEY_SNEXT: int = to(getAttr(pyImport("curses"), "KEY_SNEXT"), int)
KEY_SOPTIONS: int = to(getAttr(pyImport("curses"), "KEY_SOPTIONS"), int)
KEY_SPREVIOUS: int = to(getAttr(pyImport("curses"), "KEY_SPREVIOUS"), int)
KEY_SPRINT: int = to(getAttr(pyImport("curses"), "KEY_SPRINT"), int)
KEY_SREDO: int = to(getAttr(pyImport("curses"), "KEY_SREDO"), int)
KEY_SREPLACE: int = to(getAttr(pyImport("curses"), "KEY_SREPLACE"), int)
KEY_SRIGHT: int = to(getAttr(pyImport("curses"), "KEY_SRIGHT"), int)
KEY_SRSUME: int = to(getAttr(pyImport("curses"), "KEY_SRSUME"), int)
KEY_SSAVE: int = to(getAttr(pyImport("curses"), "KEY_SSAVE"), int)
KEY_SSUSPEND: int = to(getAttr(pyImport("curses"), "KEY_SSUSPEND"), int)
KEY_SUNDO: int = to(getAttr(pyImport("curses"), "KEY_SUNDO"), int)
KEY_SUSPEND: int = to(getAttr(pyImport("curses"), "KEY_SUSPEND"), int)
KEY_UNDO: int = to(getAttr(pyImport("curses"), "KEY_UNDO"), int)
KEY_MOUSE: int = to(getAttr(pyImport("curses"), "KEY_MOUSE"), int)
KEY_RESIZE: int = to(getAttr(pyImport("curses"), "KEY_RESIZE"), int)
KEY_MAX: int = to(getAttr(pyImport("curses"), "KEY_MAX"), int)
COLOR_BLACK: int = to(getAttr(pyImport("curses"), "COLOR_BLACK"), int)
COLOR_BLUE: int = to(getAttr(pyImport("curses"), "COLOR_BLUE"), int)
COLOR_CYAN: int = to(getAttr(pyImport("curses"), "COLOR_CYAN"), int)
COLOR_GREEN: int = to(getAttr(pyImport("curses"), "COLOR_GREEN"), int)
COLOR_MAGENTA: int = to(getAttr(pyImport("curses"), "COLOR_MAGENTA"), int)
COLOR_RED: int = to(getAttr(pyImport("curses"), "COLOR_RED"), int)
COLOR_WHITE: int = to(getAttr(pyImport("curses"), "COLOR_WHITE"), int)
COLOR_YELLOW: int = to(getAttr(pyImport("curses"), "COLOR_YELLOW"), int)
ncurses_version: tuple[major, minor, patch: int] = to(
    getAttr(pyImport("curses"), "ncurses_version"),
    tuple[major, minor, patch: int])

Procs

proc isalnum(c: string or char): bool
proc isalpha(c: string or char): bool
proc isascii(c: string or char): bool
proc isblank(c: string or char): bool
proc iscntrl(c: string or char): bool
proc isdigit(c: string or char): bool
proc isgraph(c: string or char): bool
proc islower(c: string or char): bool
proc isprint(c: string or char): bool
proc ispunct(c: string or char): bool
proc isspace(c: string or char): bool
proc isupper(c: string or char): bool
proc isZdigit(c: string or char): bool
proc isctrl(c: string or char): bool
proc ismeta(c: string or char): bool
proc ascii(c: char or int): string
proc ctrl(c: char or int): string
proc alt(c: char or int): string
proc unctrl(c: char or int): string
proc baudrate() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc beep() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc can_change_color(): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc cbreak() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc def_prog_mode() {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc def_shell_mode() {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc delay_output(ms: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc doupdate() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc endwin() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc erasechar(): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc filter() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc flash() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc flushinp() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc has_ic(): bool {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc has_il(): bool {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc has_key(ch: string or char): bool
proc has_colors(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc isendwin() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc keyname(k: int) {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc killchar(): string {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc longname(): string {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc meta(flag: bool) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc getsyx(): tuple[y, x: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc napms(ms: int) {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc nl() {....raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
            tags: [RootEffect].}
proc nocbreak() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc noecho() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc nonl() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc noqiflush() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect].}
proc noraw() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc mouseinterval(interval: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc putp(str: string) {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc qiflush(flag: bool) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc qiflush() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc raw() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                      KeyError], tags: [RootEffect].}
proc reset_prog_mode() {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc reset_shell_mode() {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc resetty() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc halfdelay(tenths: range[1 .. 255]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc savetty() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc get_escdelay(): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc resize_term(nlines, ncols: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_escdelay(ms: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc get_tabsize(): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc set_tabsize(size: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setsyx(y, x: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc setupterm(term: string; fd = -1) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc start_color() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc termattrs(): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc termname(): string {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc tigetflag(capname: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc tigetnum(capname: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc tigetstr(capname: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc typeahead(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc update_lines_cols() {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc unget_wch(ch: char or string)
proc use_env(flag: bool) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc use_default_colors() {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc unctrl(ch: char or string): string
proc ungetch(ch: char or string): string
proc color_content(color_number: int): tuple[red, green, blue: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc color_pair(pair_number: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getmouse(): tuple[id, x, y, z, bstate: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc has_extended_color_support(): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc init_color(color_number, r, g, b: range[0 .. 1000]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc is_term_resized(nlines, ncols: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pair_content(pair_number: int): tuple[fg, bg: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/dbd.html ================================================ src/cpython/dbd

src/cpython/dbd

    Dark Mode
Search:
Group by:

Procs

proc set_trace() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect].}
================================================ FILE: docs/decimal.html ================================================ src/cpython/decimal

src/cpython/decimal

Example:

import src/cpython/decimal
import nimpy
let x: PyDecimal = newDecimal"999999999999999999999999999999999999999.999999999999999999999999999999999999999"
let y: PyDecimal = -999999999999999999999999999999999999999.999999999999999999999999999999999999999'PyD
let z: PyDecimal = newDecimal BiggestUint.high
echo toString(x * y + z - z)

Types

PyDecimal = nimpy.PyObject

Procs

proc `'PyD`(value: string): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc newDecimal(value: SomeNumber or string): PyDecimal
proc prec(value: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc toFloat(self: PyDecimal): BiggestFloat {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc toInt(self: PyDecimal): BiggestInt {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc toUint(self: PyDecimal): BiggestUInt {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc toString(self: PyDecimal): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `-`(a: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `+`(a: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `<`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `<=`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `==`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `>`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `>=`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `!=`(a, b: PyDecimal): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `+`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `-`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `*`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `div`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `**`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `shl`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `shr`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `+=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc inc(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `-=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc dec(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `*=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `/=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `//=`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `&=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `<<=`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `>>=`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `%=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `@=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `|=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc `**=`(a, b: PyDecimal): PyDecimal {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc `^=`(a, b: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc low(self: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc high(self: PyDecimal): PyDecimal {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/dis.html ================================================ src/cpython/dis

src/cpython/dis

    Dark Mode
Search:
Group by:

Lets

opname: seq[string] = to(getAttr(pyImport("dis"), "opname"), seq[string])
cmp_op: seq[string] = to(getAttr(pyImport("dis"), "cmp_op"), seq[string])
hasconst: seq[int] = to(getAttr(pyImport("dis"), "hasconst"), seq[int])
hasfree: seq[int] = to(getAttr(pyImport("dis"), "hasfree"), seq[int])
hasname: seq[int] = to(getAttr(pyImport("dis"), "hasname"), seq[int])
hasjrel: seq[int] = to(getAttr(pyImport("dis"), "hasjrel"), seq[int])
hasjabs: seq[int] = to(getAttr(pyImport("dis"), "hasjabs"), seq[int])
haslocal: seq[int] = to(getAttr(pyImport("dis"), "haslocal"), seq[int])
hascompare: seq[int] = to(getAttr(pyImport("dis"), "hascompare"), seq[int])
================================================ FILE: docs/doctest.html ================================================ src/cpython/doctest

src/cpython/doctest

Procs

proc testmod(): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool; name, package: string): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool; name: string): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string; module_relative: bool): tuple[
    failure_count, test_count: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc testfile(filename: string): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc run_docstring_examples(f: string): tuple[failure_count, test_count: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc script_from_examples(examples: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc debug_src(sources: string; pm = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/ensurepip.html ================================================ src/cpython/ensurepip

src/cpython/ensurepip

Procs

proc version(): string {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc bootstrap(root: string; upgrade = false; user = false; altinstall = false;
               default_pip = false; verbosity = 0) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc bootstrap() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect].}
================================================ FILE: docs/errno.html ================================================ src/cpython/errno

src/cpython/errno

Lets

EPERM: int = to(getAttr(pyImport("builtins"), "EPERM"), int)
ENOENT: int = to(getAttr(pyImport("builtins"), "ENOENT"), int)
ESRCH: int = to(getAttr(pyImport("builtins"), "ESRCH"), int)
EINTR: int = to(getAttr(pyImport("builtins"), "EINTR"), int)
EIO: int = to(getAttr(pyImport("builtins"), "EIO"), int)
ENXIO: int = to(getAttr(pyImport("builtins"), "ENXIO"), int)
E2BIG: int = to(getAttr(pyImport("builtins"), "E2BIG"), int)
ENOEXEC: int = to(getAttr(pyImport("builtins"), "ENOEXEC"), int)
EBADF: int = to(getAttr(pyImport("builtins"), "EBADF"), int)
ECHILD: int = to(getAttr(pyImport("builtins"), "ECHILD"), int)
EAGAIN: int = to(getAttr(pyImport("builtins"), "EAGAIN"), int)
ENOMEM: int = to(getAttr(pyImport("builtins"), "ENOMEM"), int)
EACCES: int = to(getAttr(pyImport("builtins"), "EACCES"), int)
EFAULT: int = to(getAttr(pyImport("builtins"), "EFAULT"), int)
ENOTBLK: int = to(getAttr(pyImport("builtins"), "ENOTBLK"), int)
EBUSY: int = to(getAttr(pyImport("builtins"), "EBUSY"), int)
EEXIST: int = to(getAttr(pyImport("builtins"), "EEXIST"), int)
EXDEV: int = to(getAttr(pyImport("builtins"), "EXDEV"), int)
ENODEV: int = to(getAttr(pyImport("builtins"), "ENODEV"), int)
ENOTDIR: int = to(getAttr(pyImport("builtins"), "ENOTDIR"), int)
EISDIR: int = to(getAttr(pyImport("builtins"), "EISDIR"), int)
EINVAL: int = to(getAttr(pyImport("builtins"), "EINVAL"), int)
ENFILE: int = to(getAttr(pyImport("builtins"), "ENFILE"), int)
EMFILE: int = to(getAttr(pyImport("builtins"), "EMFILE"), int)
ENOTTY: int = to(getAttr(pyImport("builtins"), "ENOTTY"), int)
ETXTBSY: int = to(getAttr(pyImport("builtins"), "ETXTBSY"), int)
EFBIG: int = to(getAttr(pyImport("builtins"), "EFBIG"), int)
ENOSPC: int = to(getAttr(pyImport("builtins"), "ENOSPC"), int)
ESPIPE: int = to(getAttr(pyImport("builtins"), "ESPIPE"), int)
EROFS: int = to(getAttr(pyImport("builtins"), "EROFS"), int)
EMLINK: int = to(getAttr(pyImport("builtins"), "EMLINK"), int)
EPIPE: int = to(getAttr(pyImport("builtins"), "EPIPE"), int)
EDOM: int = to(getAttr(pyImport("builtins"), "EDOM"), int)
ERANGE: int = to(getAttr(pyImport("builtins"), "ERANGE"), int)
EDEADLK: int = to(getAttr(pyImport("builtins"), "EDEADLK"), int)
ENAMETOOLONG: int = to(getAttr(pyImport("builtins"), "ENAMETOOLONG"), int)
ENOLCK: int = to(getAttr(pyImport("builtins"), "ENOLCK"), int)
ENOSYS: int = to(getAttr(pyImport("builtins"), "ENOSYS"), int)
ENOTEMPTY: int = to(getAttr(pyImport("builtins"), "ENOTEMPTY"), int)
ELOOP: int = to(getAttr(pyImport("builtins"), "ELOOP"), int)
EWOULDBLOCK: int = to(getAttr(pyImport("builtins"), "EWOULDBLOCK"), int)
ENOMSG: int = to(getAttr(pyImport("builtins"), "ENOMSG"), int)
EIDRM: int = to(getAttr(pyImport("builtins"), "EIDRM"), int)
ECHRNG: int = to(getAttr(pyImport("builtins"), "ECHRNG"), int)
EL2NSYNC: int = to(getAttr(pyImport("builtins"), "EL2NSYNC"), int)
EL3HLT: int = to(getAttr(pyImport("builtins"), "EL3HLT"), int)
EL3RST: int = to(getAttr(pyImport("builtins"), "EL3RST"), int)
ELNRNG: int = to(getAttr(pyImport("builtins"), "ELNRNG"), int)
EUNATCH: int = to(getAttr(pyImport("builtins"), "EUNATCH"), int)
ENOCSI: int = to(getAttr(pyImport("builtins"), "ENOCSI"), int)
EL2HLT: int = to(getAttr(pyImport("builtins"), "EL2HLT"), int)
EBADE: int = to(getAttr(pyImport("builtins"), "EBADE"), int)
EBADR: int = to(getAttr(pyImport("builtins"), "EBADR"), int)
EXFULL: int = to(getAttr(pyImport("builtins"), "EXFULL"), int)
ENOANO: int = to(getAttr(pyImport("builtins"), "ENOANO"), int)
EBADRQC: int = to(getAttr(pyImport("builtins"), "EBADRQC"), int)
EBADSLT: int = to(getAttr(pyImport("builtins"), "EBADSLT"), int)
EDEADLOCK: int = to(getAttr(pyImport("builtins"), "EDEADLOCK"), int)
EBFONT: int = to(getAttr(pyImport("builtins"), "EBFONT"), int)
ENOSTR: int = to(getAttr(pyImport("builtins"), "ENOSTR"), int)
ENODATA: int = to(getAttr(pyImport("builtins"), "ENODATA"), int)
ETIME: int = to(getAttr(pyImport("builtins"), "ETIME"), int)
ENOSR: int = to(getAttr(pyImport("builtins"), "ENOSR"), int)
ENONET: int = to(getAttr(pyImport("builtins"), "ENONET"), int)
ENOPKG: int = to(getAttr(pyImport("builtins"), "ENOPKG"), int)
EREMOTE: int = to(getAttr(pyImport("builtins"), "EREMOTE"), int)
ENOLINK: int = to(getAttr(pyImport("builtins"), "ENOLINK"), int)
EADV: int = to(getAttr(pyImport("builtins"), "EADV"), int)
ESRMNT: int = to(getAttr(pyImport("builtins"), "ESRMNT"), int)
ECOMM: int = to(getAttr(pyImport("builtins"), "ECOMM"), int)
EPROTO: int = to(getAttr(pyImport("builtins"), "EPROTO"), int)
EMULTIHOP: int = to(getAttr(pyImport("builtins"), "EMULTIHOP"), int)
EDOTDOT: int = to(getAttr(pyImport("builtins"), "EDOTDOT"), int)
EBADMSG: int = to(getAttr(pyImport("builtins"), "EBADMSG"), int)
EOVERFLOW: int = to(getAttr(pyImport("builtins"), "EOVERFLOW"), int)
ENOTUNIQ: int = to(getAttr(pyImport("builtins"), "ENOTUNIQ"), int)
EBADFD: int = to(getAttr(pyImport("builtins"), "EBADFD"), int)
EREMCHG: int = to(getAttr(pyImport("builtins"), "EREMCHG"), int)
ELIBACC: int = to(getAttr(pyImport("builtins"), "ELIBACC"), int)
ELIBBAD: int = to(getAttr(pyImport("builtins"), "ELIBBAD"), int)
ELIBSCN: int = to(getAttr(pyImport("builtins"), "ELIBSCN"), int)
ELIBMAX: int = to(getAttr(pyImport("builtins"), "ELIBMAX"), int)
ELIBEXEC: int = to(getAttr(pyImport("builtins"), "ELIBEXEC"), int)
EILSEQ: int = to(getAttr(pyImport("builtins"), "EILSEQ"), int)
ERESTART: int = to(getAttr(pyImport("builtins"), "ERESTART"), int)
ESTRPIPE: int = to(getAttr(pyImport("builtins"), "ESTRPIPE"), int)
EUSERS: int = to(getAttr(pyImport("builtins"), "EUSERS"), int)
ENOTSOCK: int = to(getAttr(pyImport("builtins"), "ENOTSOCK"), int)
EDESTADDRREQ: int = to(getAttr(pyImport("builtins"), "EDESTADDRREQ"), int)
EMSGSIZE: int = to(getAttr(pyImport("builtins"), "EMSGSIZE"), int)
EPROTOTYPE: int = to(getAttr(pyImport("builtins"), "EPROTOTYPE"), int)
ENOPROTOOPT: int = to(getAttr(pyImport("builtins"), "ENOPROTOOPT"), int)
EPROTONOSUPPORT: int = to(getAttr(pyImport("builtins"), "EPROTONOSUPPORT"), int)
ESOCKTNOSUPPORT: int = to(getAttr(pyImport("builtins"), "ESOCKTNOSUPPORT"), int)
EOPNOTSUPP: int = to(getAttr(pyImport("builtins"), "EOPNOTSUPP"), int)
EPFNOSUPPORT: int = to(getAttr(pyImport("builtins"), "EPFNOSUPPORT"), int)
EAFNOSUPPORT: int = to(getAttr(pyImport("builtins"), "EAFNOSUPPORT"), int)
EADDRINUSE: int = to(getAttr(pyImport("builtins"), "EADDRINUSE"), int)
EADDRNOTAVAIL: int = to(getAttr(pyImport("builtins"), "EADDRNOTAVAIL"), int)
ENETDOWN: int = to(getAttr(pyImport("builtins"), "ENETDOWN"), int)
ENETUNREACH: int = to(getAttr(pyImport("builtins"), "ENETUNREACH"), int)
ENETRESET: int = to(getAttr(pyImport("builtins"), "ENETRESET"), int)
ECONNABORTED: int = to(getAttr(pyImport("builtins"), "ECONNABORTED"), int)
ECONNRESET: int = to(getAttr(pyImport("builtins"), "ECONNRESET"), int)
ENOBUFS: int = to(getAttr(pyImport("builtins"), "ENOBUFS"), int)
EISCONN: int = to(getAttr(pyImport("builtins"), "EISCONN"), int)
ENOTCONN: int = to(getAttr(pyImport("builtins"), "ENOTCONN"), int)
ESHUTDOWN: int = to(getAttr(pyImport("builtins"), "ESHUTDOWN"), int)
ETOOMANYREFS: int = to(getAttr(pyImport("builtins"), "ETOOMANYREFS"), int)
ETIMEDOUT: int = to(getAttr(pyImport("builtins"), "ETIMEDOUT"), int)
ECONNREFUSED: int = to(getAttr(pyImport("builtins"), "ECONNREFUSED"), int)
EHOSTDOWN: int = to(getAttr(pyImport("builtins"), "EHOSTDOWN"), int)
EHOSTUNREACH: int = to(getAttr(pyImport("builtins"), "EHOSTUNREACH"), int)
EALREADY: int = to(getAttr(pyImport("builtins"), "EALREADY"), int)
EINPROGRESS: int = to(getAttr(pyImport("builtins"), "EINPROGRESS"), int)
ESTALE: int = to(getAttr(pyImport("builtins"), "ESTALE"), int)
EUCLEAN: int = to(getAttr(pyImport("builtins"), "EUCLEAN"), int)
ENOTNAM: int = to(getAttr(pyImport("builtins"), "ENOTNAM"), int)
ENAVAIL: int = to(getAttr(pyImport("builtins"), "ENAVAIL"), int)
EISNAM: int = to(getAttr(pyImport("builtins"), "EISNAM"), int)
EREMOTEIO: int = to(getAttr(pyImport("builtins"), "EREMOTEIO"), int)
EDQUOT: int = to(getAttr(pyImport("builtins"), "EDQUOT"), int)
================================================ FILE: docs/faulthandler.html ================================================ src/cpython/faulthandler

src/cpython/faulthandler

    Dark Mode
Search:
Group by:

Procs

proc dump_traceback() {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc enable() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc disable() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc is_enabled(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc register(signum: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc unregister(signum: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc cancel_dump_traceback_later() {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc dump_traceback_later(timeout: int; repeat = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/fcntl.html ================================================ src/cpython/fcntl

src/cpython/fcntl

Procs

proc fcntl(fd: int; cmd: string; arg = 0): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc ioctl(fd, request: int; arg = 0; mutate_flag = true): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lockf(fd: int; cmd: string; len = 0; start = 0; whence = 0): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/filecmp.html ================================================ src/cpython/filecmp

src/cpython/filecmp

Procs

proc clear_cache() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc cmp(f1, f2: string; shallow = true): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc cmpfiles(dir1, dir2: string; common: seq[string]; shallow = true): tuple[
    match, mismatch, errors: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/fnmatch.html ================================================ src/cpython/fnmatch

src/cpython/fnmatch

Procs

proc fnmatch(filename, pattern: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc fnmatchcase(filename, pattern: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc filter(names: seq[string]; pattern: string): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc translate(pattern: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/gc.html ================================================ src/cpython/gc

src/cpython/gc

Procs

proc enable() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc disable() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc freeze() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc unfreeze() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc collect() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc collect(generation: range[0 .. 2]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc set_debug(flags: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc isenabled(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc get_debug(): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc is_tracked(objeto: auto): bool
proc is_finalized(objeto: auto): bool
proc get_freeze_count(): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc set_threshold(threshold0, threshold1, threshold2: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc set_threshold(threshold0, threshold1: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc set_threshold(threshold0: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_count(): tuple[count0, count1, count2: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_threshold(): tuple[threshold0, threshold1, threshold2: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}

Templates

template nogc(code)
Temporarily disable the Python Garbage Collector, run your code, and enable Garbage Collector again.
================================================ FILE: docs/getopt.html ================================================ src/cpython/getopt

src/cpython/getopt

Procs

proc getopt(args: seq[string]; shortopts: string; longopts: seq[string]): tuple[
    option: seq[tuple[key, value: string]], value: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getopt(args: seq[string]; shortopts: string): tuple[
    option: seq[tuple[key, value: string]], value: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc gnu_getopt(args: seq[string]; shortopts: string; longopts: seq[string]): tuple[
    option: seq[tuple[key, value: string]], value: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc gnu_getopt(args: seq[string]; shortopts: string): tuple[
    option: seq[tuple[key, value: string]], value: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/getpass.html ================================================ src/cpython/getpass

src/cpython/getpass

    Dark Mode
Search:
Group by:

Procs

proc getpass(prompt = "Password: "): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getuser(): string {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/gettext.html ================================================ src/cpython/gettext

src/cpython/gettext

Procs

proc bindtextdomain(domain, localedir: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc bindtextdomain(domain: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc bind_textdomain_codeset(domain, codeset: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc bind_textdomain_codeset(domain: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc textdomain(domain: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc textdomain() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc gettext(message: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc ngettext(singular, plural: string; n: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lgettext(message: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lngettext(singular, plural: string; n: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/glob.html ================================================ src/cpython/glob

src/cpython/glob

    Dark Mode
Search:
Group by:

Procs

proc glob(pathname: string): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc escape(pathname: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/grp.html ================================================ src/cpython/grp

src/cpython/grp

Procs

proc getgrgid(gid: int): tuple[gr_name, gr_passwd: string, gr_gid: int,
                               gr_mem: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getgrnam(name: string): tuple[gr_name, gr_passwd: string, gr_gid: int,
                                   gr_mem: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getgrall(): seq[tuple[gr_name, gr_passwd: string, gr_gid: int,
                           gr_mem: seq[string]]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/gzip.html ================================================ src/cpython/gzip

src/cpython/gzip

    Dark Mode
Search:
Group by:

Procs

proc compress(data: string; compresslevel = 9): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decompress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/hashlib.html ================================================ src/cpython/hashlib

src/cpython/hashlib

Procs

proc sha3_512(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc shake_256(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc shake_128(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc md5(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha512_224(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mdc2(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha3_384(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc md4(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha3_256(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc blake2b(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha512(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha224(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc blake2s(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha512_256(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc whirlpool(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc ripemd160(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha384(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha1(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha256(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sm3(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sha3_224(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pbkdf2_hmac(hash_name, password, salt: string; iterations, dklen: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pbkdf2_hmac(hash_name, password, salt: string; iterations: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/hmac.html ================================================ src/cpython/hmac

src/cpython/hmac

    Dark Mode
Search:
Group by:

Procs

proc compare_digest(a, b: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/html_entities.html ================================================ src/cpython/html_entities

src/cpython/html_entities

    Dark Mode
Search:
Group by:

Lets

html5: Table[string, string] = to(getAttr(pyImport("html.entities"), "html5"),
                                  Table[string, string])
entitydefs: Table[string, string] = to(getAttr(pyImport("html.entities"),
    "entitydefs"), Table[string, string])
name2codepoint: Table[string, int] = to(getAttr(pyImport("html.entities"),
    "name2codepoint"), Table[string, int])
codepoint2name: Table[int, string] = to(getAttr(pyImport("html.entities"),
    "codepoint2name"), Table[int, string])
================================================ FILE: docs/imghdr.html ================================================ src/cpython/imghdr

src/cpython/imghdr

    Dark Mode
Search:
Group by:

Procs

proc what(file: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc what(file, h: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/imp.html ================================================ src/cpython/imp

src/cpython/imp

Procs

proc get_magic(): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc get_suffixes(): seq[tuple[suffix, mode, tipe: string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc find_module(name, path: string): tuple[file, pathname, description: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc find_module(name: string): tuple[file, pathname, description: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc load_module(name, file, pathname, description: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc reload(module: string) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc cache_from_source(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc source_from_cache(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lock_held(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc acquire_lock() {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc release_lock() {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/importlib.html ================================================ src/cpython/importlib

src/cpython/importlib

Lets

SOURCE_SUFFIXES: seq[string] = to(getAttr(pyImport("importlib.machinery"),
    "SOURCE_SUFFIXES"), seq[string])
DEBUG_BYTECODE_SUFFIXES: seq[string] = to(
    getAttr(pyImport("importlib.machinery"), "DEBUG_BYTECODE_SUFFIXES"),
    seq[string])
OPTIMIZED_BYTECODE_SUFFIXES: seq[string] = to(
    getAttr(pyImport("importlib.machinery"), "OPTIMIZED_BYTECODE_SUFFIXES"),
    seq[string])
BYTECODE_SUFFIXES: seq[string] = to(getAttr(pyImport("importlib.machinery"),
    "BYTECODE_SUFFIXES"), seq[string])
EXTENSION_SUFFIXES: seq[string] = to(getAttr(pyImport("importlib.machinery"),
    "EXTENSION_SUFFIXES"), seq[string])

Procs

proc import_module(name, package: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc import_module(name: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc invalidate_caches() {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc reload(module: auto)
proc is_resource(package, name: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc all_suffixes(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc cache_from_source(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc source_from_cache(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decode_source(path: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc resolve_name(name, package: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc source_hash(source_bytes: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/keyword.html ================================================ src/cpython/keyword

src/cpython/keyword

    Dark Mode
Search:
Group by:

Procs

proc iskeyword(symbol: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc issoftkeyword(symbol: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/linecache.html ================================================ src/cpython/linecache

src/cpython/linecache

    Dark Mode
Search:
Group by:

Procs

proc getline(filename: string; lineno: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc clearcache() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc checkcache(filename: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lazycache(filename: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/logging.html ================================================ src/cpython/logging

src/cpython/logging

Lets

CRITICAL: int = to(getAttr(pyImport("logging"), "CRITICAL"), int)
ERROR: int = to(getAttr(pyImport("logging"), "ERROR"), int)
WARNING: int = to(getAttr(pyImport("logging"), "WARNING"), int)
INFO: int = to(getAttr(pyImport("logging"), "INFO"), int)
DEBUG: int = to(getAttr(pyImport("logging"), "DEBUG"), int)
NOTSET: int = to(getAttr(pyImport("logging"), "NOTSET"), int)

Procs

proc disable(level: string or int)
proc addLevelName(level: int; levelName: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getLevelName(level: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc shutdown() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc captureWarnings(capture: bool) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/lzma.html ================================================ src/cpython/lzma

src/cpython/lzma

Procs

proc compress(data: string; format = 1; check = -1; preset: range[0 .. 9] = 9): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc decompress(data: string; format: int; memlimit: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decompress(data: string; format = 0): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decompress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/marshal.html ================================================ src/cpython/marshal

src/cpython/marshal

    Dark Mode
Search:
Group by:

Procs

proc dumps(value: auto; version: range[0 .. 4] = 4): string
proc loads(bites: string): auto {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/math.html ================================================ src/cpython/math

src/cpython/math

    Dark Mode
Search:
Group by:

Procs

proc ceil(x: int or float): float
proc comb(n, k: int or float): float
proc fabs(x: int or float): float
proc factorial(x: int or float): float
proc floor(x: int or float): float
proc fmod(x, y: int or float): float
proc frexp(x: int or float): float
proc fsum(iterable: seq[int] or seq[float]): float
proc lcm(integers: varargs[int]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc isclose(a, b: int or float): bool
proc isfinite(x: int or float): bool
proc isnan(x: int or float): bool
proc isinf(x: int or float): bool
proc isqrt(x: int or float): bool
proc ldexp(x, i: int or float): float
proc modf(x: int or float): float
proc nextafter(x, y: int or float): float
proc perm(x, y: int): float {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc perm(x: int): float {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc prod(iterable: seq[int] or seq[float]): float
proc remainder(x, y: int or float): float
proc trunc(x: int or float): float
proc ulp(x: int or float): float
proc exp(x: int or float): float
proc expm1(x: int or float): float
proc log(x: int or float): float
proc log(x: int or float; base: int): float
proc log1p(x: int or float): float
proc log2(x: int or float): float
proc log10(x: int or float): float
proc pow(x, y: int or float): float
proc sqrt(x: int or float): float
proc acos(x: int or float): float
proc asin(x: int or float): float
proc atan(x: int or float): float
proc atan2(x, y: int or float): float
proc cos(x: int or float): float
proc dist(x, y: int or float): float
proc sin(x: int or float): float
proc tan(x: int or float): float
proc degrees(x: int or float): float
proc radians(x: int or float): float
proc acosh(x: int or float): float
proc asinh(x: int or float): float
proc atanh(x: int or float): float
proc cosh(x: int or float): float
proc sinh(x: int or float): float
proc tanh(x: int or float): float
proc erf(x: int or float): float
proc erfc(x: int or float): float
proc gamma(x: int or float): float
proc lgamma(x: int or float): float
================================================ FILE: docs/mathutils_geometry.html ================================================ src/cpython/upbge/mathutils_geometry

src/cpython/upbge/mathutils_geometry

    Dark Mode
Search:
Group by:

Procs

proc area_tri(v1, v2, v3: array[3, float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc barycentric_transform(point, tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3: array[
    3, float]): array[3, float] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc box_fit_2d(points: seq[array[2, float]]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc box_pack_2d(boxes: seq[tuple[x, y, width, height: float]]): tuple[
    width, height: float] {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc closest_point_on_tri(pt, tri_p1, tri_p2, tri_p3: array[3, float]): array[3,
    float] {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                      KeyError],
             tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc convex_hull_2d(points: seq[array[2, float]]): seq[int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc delaunay_2d_cdt(vert_coords: seq[array[2, float]]; edges: seq[(int, int)];
                     faces: seq[seq[int]]; output_type: auto; epsilon: 0 .. 3): tuple[
    vert_coords: seq[array[2, float]], edges: seq[(int, int)],
    faces, orig_verts, orig_edges, orig_faces: seq[seq[int]]]
proc distance_point_to_plane(pt, plane_co, plane_no: array[3, float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc interpolate_bezier(knot1, handle1, handle2, knot2: array[3, float];
                        resolution: int): seq[array[3, float]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_line_line(v1, v2, v3, v4: array[3, float]): array[3, float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_line_line_2d(lineA_p1, lineA_p2, lineB_p1, lineB_p2: array[2,
    float]): array[2, float] {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_line_plane(line_a, line_b, plane_co, plane_no: array[3, float];
                          no_flip = false): array[3, float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_line_sphere(line_a, line_b, sphere_co: array[3, float];
                           sphere_radius: auto; clip = true): (array[3, float],
    array[3, float])
proc intersect_line_sphere_2d(line_a, line_b, sphere_co: array[2, float];
                              sphere_radius: auto; clip = true): (
    array[2, float], array[2, float])
proc intersect_plane_plane(plane_a_co, plane_a_no, plane_b_co, plane_b_no: array[
    3, float]): (array[3, float], array[3, float]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_point_line(pt, line_p1: array[3, float]; line_p2: auto): (
    array[3, float], float)
proc intersect_point_quad_2d(pt, quad_p1, quad_p2, quad_p3, quad_p4: array[2,
    float]): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc intersect_point_tri(pt, tri_p1, tri_p2, tri_p3: array[3, float]): array[3,
    float] {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                      KeyError],
             tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_point_tri_2d(pt, tri_p1, tri_p2, tri_p3: array[2, float]): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_ray_tri(v1, v2, v3, ray, orig: array[3, float]; clip = true): array[
    3, float] {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError],
                tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc intersect_sphere_sphere_2d(p_a: array[2, float]; radius_a: float;
                                p_b: array[2, float]; radius_b: float): (
    array[2, float], array[2, float]) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc intersect_tri_tri_2d(tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3: array[
    2, float]): bool {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc normal(vectors: seq[array[3, float]]): array[3, float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc poly_3d_calc(veclist: seq[array[3, float]]; pt: array[3, float]): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc tessellate_polygon(veclist_list: auto): seq[seq[float]]
proc volume_tetrahedron(v1, v2, v3, v4: array[3, float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/mathutils_noise.html ================================================ src/cpython/upbge/mathutils_noise

src/cpython/upbge/mathutils_noise

    Dark Mode
Search:
Group by:

Procs

proc cell(position: array[3, float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc cell_vector(position: array[3, float]): array[3, float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc fractal(position: array[3, float]; h, lacunarity: float; octaves: int;
             noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc hetero_terrain(position: array[3, float]; h, lacunarity: float;
                    octaves: int; offset: float; noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc hybrid_multi_fractal(position: array[3, float]; h, lacunarity: float;
                          octaves: int; offset, gain: float;
                          noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc multi_fractal(position: array[3, float]; h, lacunarity: float;
                   octaves: int; noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc noise(position: array[3, float]; noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc noise_vector(position: array[3, float]; noise_basis = "PERLIN_ORIGINAL"): array[
    3, float] {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError],
                tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc random(): float {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc random_unit_vector(size: 2 .. 4 = 3): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc random_vector(size: 2 .. 4 = 3): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc ridged_multi_fractal(position: array[3, float]; h, lacunarity: float;
                          octaves: int; offset, gain: float;
                          noise_basis = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc seed_set(seed: int) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc turbulence(position: array[3, float]; octaves: int; hard: bool;
                noise_basis = "PERLIN_ORIGINAL"; amplitude_scale = 0.5;
                frequency_scale = 2.0): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc turbulence_vector(position: array[3, float]; octaves: int; hard: bool;
                       noise_basis = "PERLIN_ORIGINAL"; amplitude_scale = 0.5;
                       frequency_scale = 2.0): array[3, float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc variable_lacunarity(position: array[3, float]; distortion: float;
                         noise_type1 = "PERLIN_ORIGINAL";
                         noise_type2 = "PERLIN_ORIGINAL"): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc voronoi(position: array[3, float]; distance_metric = "DISTANCE";
             exponent = 2.5): (array[4, float], seq[array[3, float]]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/mimetypes.html ================================================ src/cpython/mimetypes

src/cpython/mimetypes

Procs

proc init(files: seq[string]) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc init() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc read_mime_types(filename: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc add_type(tipe, ext: string; strict = true) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc read_windows_registry(strict = true) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc read(filename: string; strict = true) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc guess_type(url: string; strict = true): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc guess_all_extensions(tipe: string; strict = true): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc guess_extension(tipe: string; strict = true): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/nimdoc.out.css ================================================ /* Stylesheet for use with Docutils/rst2html. See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to customize this style sheet. Modified from Chad Skeeters' rst2html-style https://bitbucket.org/cskeeters/rst2html-style/ Modified by Boyd Greenfield and narimiran */ :root { --primary-background: #fff; --secondary-background: ghostwhite; --third-background: #e8e8e8; --info-background: #50c050; --warning-background: #c0a000; --error-background: #e04040; --border: #dde; --text: #222; --anchor: #07b; --anchor-focus: #607c9f; --input-focus: #1fa0eb; --strong: #3c3c3c; --hint: #9A9A9A; --nim-sprite-base64: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAAA9CAYAAADCt9ebAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDE5LTEyLTAzVDAxOjAzOjQ4KzAxOjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxOS0xMi0wM1QwMjoyODo0MSswMTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxOS0xMi0wM1QwMjoyODo0MSswMTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozMzM0ZjAxYS0yMDExLWE1NGQtOTVjNy1iOTgxMDFlMDFhMmEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzMzNGYwMWEtMjAxMS1hNTRkLTk1YzctYjk4MTAxZTAxYTJhIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzMzNGYwMWEtMjAxMS1hNTRkLTk1YzctYjk4MTAxZTAxYTJhIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozMzM0ZjAxYS0yMDExLWE1NGQtOTVjNy1iOTgxMDFlMDFhMmEiIHN0RXZ0OndoZW49IjIwMTktMTItMDNUMDE6MDM6NDgrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4PsixkAAAJ5klEQVR4nO2dfbBUZR3HP3vvxVD0zo0ACXxBuQMoQjJ1DfMl0NIhNcuSZqQhfGt6UWtK06xJexkrmywVRTQlHCIdtclC0zBJvYIvvEUgZpc3XyC7RVbKlQu1/fHdbc+uu2fPOfs85+y55/nMnBl2z+5zfnc5v/M8z+8119XVRYroAG4HfgvMT1YUR4MMAa4HLkhakCRoSVqAELwLeBY4C7gF+D6QS1QiR1ROAJ4Dzk9akKQwoXhtwL4GxvHjU8AKoNPz3leAu4HBFq+bAyZZHD9rDAK+BywDDklYlkQxoXhfAtYAEw2MVckQYBHwU6or99nA08BBFq49GngUeBIYaWH8rNEJdAOXA60Jy5I4jSreSOBKYDzwBPCJhiUqcSjwe2BWnc9NLnxuvMFrnwqsAqYBBwBfNzh2FpmNfs9jkhakWcg1aFxZiH5UL3cDnwf+Xue7BwFjgFHAOwuv24tyob3cO0LIshP4EbCn8Pq/wKvA9sLxMvCvOmPsA1yDZnHv/nEv2mM+F0IeR4m8z7lM7tMbUbzj0CxX7YfbAXwaWFJ4PRrNIu9FS9KJyEIZN68CG4DnkRJtLBw7gHHAYuDdNb77EDAjBhkHIk7xKoiqeK3IwjilzuceQJvoZjdQ/AMZaeoZiWYgBXSEwyleBW0Rv3cR9ZUO4LSI48fN2wN+bi5wJNBvUZaBSCaVy48oxpVhwDdMC5ISxpJRh6/DLGEUrxXt29YBQ+2IkwquR76ofZIWxJFegireNLSnm48skFmmDfmiVgJHJyuKI620ADOpbWEcDPwYOZKD7OmyxCTkXL+wzueOiEEWR8poQb60V4A7kLm/yFjgKeALuM1xLfYDbkX+zEGe98cAX0Oui6viF8vR7OS6urragW2UZr21wK+Aiwlu7XPoN3sYOAd4H6WH1SnA0qSEcjQnRT/e1bgnsw16kGPez4/lyCBF48oNwL+TFGSAsgCndI4qFBVvJ0owdZhjL3CnxfHzBo8+YBMyol0CHBijrKbHS/LoA7Yio9sPgJNr/QHekLGR6MffL+KP4SjnHmQxtoXNmbQP+CHyV75hYDzTIWNpWkU8iR5mq71vVsZqXgtcFqNQ/wG2IOtfD8oi6AX+Ujj+isKz8sBrnu+1okyGdmD/wnEgcDClTIdRyJRvI1cvCMciq7At4rj5eoCPAusbHCfLigda/VyKgi+AtyreMGAzykGzQQ/wO+BxSlkCuy1dq8hw5OieUjimYT+x9bHCdWwS1823Ez1EXmhgjKwrXpHzkduuanbCtzGX+NkPPAj8GincNkPjNkIO5dadUjiOB95m+BonopQpm8R58/0JJbHWy2eshVM8sRvdbyurKV4Hmoka2WA/iwwLP6d+QmzSdKC92GzK/W9R+Q3woQbHCELcN991wJcjftcpXolngKm18vFmoVonYcgDv0Qz5pqGREuOTuA8lPYUZbndh0LJNpkUqgZx33xvomim7RG+6xSvnOm1gqQXoyiMoKxFs8VZpFfpQHvQK4HDUPnAsBa9bxGP0tUjF+IYCkxFew+/G3owdq20pgjzt3uPRscs/o43IaOhH2f4ZaAPRyZQP6vgbuCbyGext87F0sgIZFI/N8BnlwBnolovcWAjq/uzwM0+55cBJ0UYN84ZL+rfbnLMM4FfUDv7Z1XlCe8FetETbleNL7+CZrnvMjCVDuTOOA84Hf+96ga0PC8qXY50FQsuMg+41+d8p885R4n7gdt8zo+qvDkmUF4fZQXwEbS+99KDMhlWkw0eALqQglXyDDCdcovf+4lv5jPNXJ9zWc/FDMMdPudGVCreRlTWwVtWbynwYVQQCFSp61Q042WJLUjB1nneuw8tvXo97x1Lugvg+j1Mo9boySLVHtJFWqsthx5GlbSGeN5bigrHdqPl52Zj4qWLXvTQWY4KOX2ccgPMBLRcuy9+0YzhguXN4GuYq2Zc2R/NZg+hfYt3/9ZCepdQthmB4vIWIYOTbWyWzGt2Y0izG1fqjlltxnsdpbPMRMmd3lqTTumqMw7FZY5G5mSHw5dalreiRWYGWjbZ7gYUlFa0xOtIWA4vk1E6zWEoI+FvyYrjSAO1FG8DCmQGKd+DJFsGogWVVFiP/GWbga9Svg9NgtPQvnd04fUNCcriSBF+vqZ5nn9PQ+Xs4q401oI6EP0R+BkyXoAeAtcgBfwidnvkVaMVFTO6n1JoWTfqiONw1MVP8e6l3GVwOPJZXW5VItGGiuduAu5CZdOrMQJ1CHqpIFccS+LxaD/3Hcr7vF0Xw7UdAwQ/xduLGkJ6aUMhVAuwU006B3wM+ZLmozJ5QRhWkGs9yjKw1fhwDsq8eE/F+y+i1CeHIxD1wppupXrA5xyUOjQHMzU3cyjTeS2aaaN2Fzoc1bhch3xspuqBTkDulQVUz1q4mYEbNuewQD3FexGFS1VjOLoRHwOOinj9HAooXY2CSidHHKeSI5GFcRWNdSxqR7VH1iHHeTV24R+X53C8hSCBvPPqnD8B+AOygn6OYAm0ORSGthLl8B0d4DtRmIKsoMsJF1U/Hi1dt6DusIN8PrsIlUdwOAITpDFlC6q3MTbgmHm011qGepOvQSXPipyOCujW6rxqk0dRWYsVFe8PRSn5JxWOoEvdfOGzfnF5tnCRK+bGi33MoB1hL0U5d1H5J5oVD6A5mp8sQS6KSWh5e0jEcR4BPmhKqJA4xTM3XuxjBlW8DuRacDU3y0myNbNTPHPjxT5m0GTN15A/zVFiI+HKYzgc/ydMlrRfgmQWuYn0F91xJEQYxVuDnMcOrQAWJi2EI72ErQviwqLEQpQ+5XBEIqzi3YWLwF+BMiMcjshEqYR1Gdk1KmxBsaR9SQviSDdRFK8fxVU+YliWZmcbcq7vSFoQR/qJWvuxD0WgLDYoSzPzAqowtjVhORwDhEaKru4GPoliGgcyy4Hj0DLT4TBCo9WO88jQ8Bns97lLghvRTOfqqDiMYqrM+HyUYdBtaLykeRmlK12C9rQOh1FM1vd/HqUIzaT5e+LVoh/VxByHShs6HFaw0VjjHhTxP5d0LT+fRnu5q3HuAodlbHW02Q5cDByM+sw1642cRylCx6PeZiuTFScUFxK+f19QovaRS+t4tsasxhvABbZbSfUCV6CM7qtQl6Fm4E1U22UqcAYqvZ42fgJMxH6vdYc5nkBlSW6Pq4fbS6hb6jg0u9yGug7FyS5U1+UcVBbwbFSuMM1sQ1bXK4A9CcviqM0e9H80HdUxCpwIa4McygA/GfgAcCJqmGKKXUixupEv7nHsLc2agWNQ0d9OzC+PHNHIo1XeLCoe8kkqXiUtwKFoWXoEKqk3BpWLaC8cXsV8HT1J+tFTZKvn+DMqFZi1knvtyKg1O2lBHADcCVxEedNSAP4HJcsr0NNWHVUAAAAASUVORK5CYII="); --keyword: #5e8f60; --identifier: #222; --comment: #484a86; --operator: #155da4; --punctuation: black; --other: black; --escapeSequence: #c4891b; --number: #252dbe; --literal: #a4255b; --program: #6060c0; --option: #508000; --raw-data: #a4255b; } [data-theme="dark"] { --primary-background: #171921; --secondary-background: #1e202a; --third-background: #2b2e3b; --info-background: #008000; --warning-background: #807000; --error-background: #c03000; --border: #0e1014; --text: #fff; --anchor: #8be9fd; --anchor-focus: #8be9fd; --input-focus: #8be9fd; --strong: #bd93f9; --hint: #7A7C85; --nim-sprite-base64: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAABMCAYAAABOBlMuAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDE5LTEyLTAzVDAxOjE4OjIyKzAxOjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxOS0xMi0wM1QwMToyMDoxMCswMTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxOS0xMi0wM1QwMToyMDoxMCswMTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDplZGViMzU3MC1iNmZjLWQyNDQtYTExZi0yMjc5YmY4NDNhYTAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ZWRlYjM1NzAtYjZmYy1kMjQ0LWExMWYtMjI3OWJmODQzYWEwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZWRlYjM1NzAtYjZmYy1kMjQ0LWExMWYtMjI3OWJmODQzYWEwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDplZGViMzU3MC1iNmZjLWQyNDQtYTExZi0yMjc5YmY4NDNhYTAiIHN0RXZ0OndoZW49IjIwMTktMTItMDNUMDE6MTg6MjIrMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4wIChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4JZNR8AAAfG0lEQVR4nO2deViTZ7r/7yxkJaxJ2MK+GCBAMCwS1kgUFQSKK4XWWqsz1jpjp3b0tDP1V+eqU391fqfT/mpPPd20drTFDS0KFEVWJSGAEgLIZpAICBJACIRs549Rj1WILAkBfD/XlevySp68z/0S3+/7vPdzLyidTgcLkU2bd+z39/f/q1gshsrKSoJELFCa2iaEuU9K6kb+8uXxv54/fzE8L/eswNT2zCfQpjbAGKS8lPFKSEjIXiaTCSEhIeDj4xNnapsQ5j6rktZGp6UlfxIdzQVzCplmanvmG1hTG2BIAtlc26CgoDfT0tL2e3l5AQCAjY0NkMnk/a9s2k6rrKw8UV8n1JjYTIQ5RlAw14KzmL3xze1vfJyUuMJaq9UCFovFm9qu+YbBxcSPFUYkk8l2Q0NDsvo6ocrQx5+I8Ih4bz6f/0l8fHyKlZXV4/dRKBQwmcwwMpn8A4FAoPgHhH9bV1sxa488wZxoaycnJ/a9e/duCa5fkc3WvAiTI4Ib77p+XdqHG9anbfLy8gAAgLGxMdBpF+bjvzExqJj4scKI0dHRnwQHB++orq7+AgDeMuTxJ2Jl4rqU9PT0EwEBAUQCgTDuGAaDAampqYepVKpHUHDk325Ulw0a266YuFW+Gzdu/MDPz29jfn7+XgA4aOw5ESZP6kvpCXv3vnM8NiaSamVl+fj9BepGNDoGFRN7e/slcXFxO1xcXMDJyWnH7j//H/fi4uJdgutXmgw5z5O8smn7X9euXbvf29sbMBjMhONQKBRYWVlBbGzsbjMzM3JoOG+/sKKwy1h2rd/4elpGRsYuLy+vaDweD2w2Oy1h5ZrCvEunEaeeiVnMiabyl/F2/+X9P+8JDPQHHA5napMWBAYTk6DgSNuEhIS9DAYDAP7tq1i6dOkqOp3OWbNu0wens44emeoxA9lcWwKBYEMkEm2JRKIdHo+3QKFQWJ1Op8ZgMER3d/dVq1evTnFycpr0MSkUCsTExGzH4/Gk1LTME/39/TI0Go1FoVCg1WrVY2NjipGRkcGRkRH5dPwrEZHLXMPCwjJSUlIy3dzcfB+97+rqGhYSEpIOAIiYmBguN3zL77dt3uPh4W5qUxYUBhMTb2/vjeHh4cvR6P/dILK0tITIyEg7BweHr363/Z3Ampqaf1Zcu/zMKiVsyVJvMplsRyKR7IhEor2FhYUbhUJhJCYm2pFIJB6JRAIymQx4PB7QaDRoNBowMzMDJycnwOOn7icjEokQGxu7icFgbLp///7jFY1WqwWlUgkjIyOgUCgO7Ni5Rz48PCwfHh7uGRkZeaBQKOSjo6ODCoVCXlNVKn/6uCsT13FXrVr1emho6BYKhfLMnP7+/omrU9LPX8g+UThloxEMxqJFXjxESAyPQcSEExrLWLNmzW57e/txP/fw8ABHR8cdDAaDt3xF2ru9vb03sVgs0cbGxs/FxWVZUlISj0aj+dna2oKtrS1M5PcwJCgUCry8vODRrs84vPfoH6OjoyCXy6Gvr+/R6+CWrX9s7evrk/b19bWr1Wqli4sLZ8OGDe95eXmxUSjUuAd0cHDwjoqK2sYKXFIhvnldYYTTQpgU4/8+jyASCYDGoCd+ZkYYF8OICYezl8PhuOkbQyAQIDo62s/NzS2np6cHbGxsgEajAYFAAAwGA1gsFia6CE0NgUAABwcHsLe3B61WC2q1eo9WqwWNRgNKpRLUajUQiUSgUCh6zwGHwwGTydzo5+eXBQBnZu8MEJ5keHhYPqyYWMtHR0ZBpVIhYj9FUDONgOUvT12+du3avMDAQJjssdRqNWCxCyrEZdLodDoQi8Ulx44de628NL/V1Pa8iERE8l2dHB2CJvpcq9Nqbt1qKURWj1Njxld0ZGTkAW9v70kLCQC8sEIC8O/HKx8fn2gmk8kHgCk7pRFmzrWyAikASE1tx0Jj2uH0EZHL/N7YtuvT4OBgzmz4OBYSeDweIiMjt2S++vtMP1YYEmmJsCCY8mNOIJtr6+zsHBcZGXmIw+G4mZubG8m0hU9HRwcUFxe/KxQKTyDRsQjznSmJCS9+dVRERMTfQ0NDo2xtbfUGiSFMjtHRUaitrc3Jzc09kHvxVLmp7UFAmC6oZQkvrZLL5RJhReHtiQb5scKIXC7371FRUX90dnYGIpE4JR8Jgn40Gg20t7fXFxYWfnr9+vWjz8sdYi+Osh4vzgUBwZSgtu94V+fs7Hx7YGCgra6u7khLS0u2RCwYeTQgKmYFh8fj/f/g4OAldnZ2prR1wdPd3Q1CofBQSUnJkdLi3N8E93FCY6k+Pj48FxcXjlar1ZSWlh65VvYr4kREmDNg79+/D3FxcW5OTk5uXl5evNbW1tL0jK3ZXV1d1ykUintycvInoaGhdkj+gvGxs7MDPp+/m0AgWMQvS/lyeHhYTqPRPJycnIJSU1NZ3t7eW2g0Gly/fv2oWq1Gij0hzClQ/gHhpLS0tEM8Hm/7I8Ho7++HlpYWsLa2Bg8PDxOb+OKhUCigqakJ7t+/D25ubuDu7g4oFAp0Oh08ePAAvv7666TTWUdzTG0nAsKTYMU3ryuSU18+4+bmFrZo0SIOAICVlRUsXrx4zkakLnRIJBI8CgJ8MtdJp9NBZ2enqL29XWRC8xAQxgUNAHD+3L8KGhoaCp78ABES04JCoX4jJAAAAwMDUFtbe96YpRMQEKbL41DU5ubmko6Ojj2PSgggzD36+/vrb9y4cX425zzw93/8EBjon2is44+NjSkePBjqGRwc7G5v7xBV19w8U5B/3qgrr9+/uWtXUuKKD/TZ9MXh/066/OuFmunO8dGBQ98HBbGSp/t9U6LRaDXK0dHBoeFhuVzeL22/0yFqamopufjLqRJ933ssJi0tLSXV1dWHGAzGbuObOzs8ubqa71vZKpUKOjo6blwpOF8zm/Mu5cVkLlkSaswprAHAaVihgK7O7oSGxltvfXLon3nXK4RHT2cdN4pfKDCAlZyUuMJan02nTmczAaBmunPw4qI3cbnh0/36XICq0+lgcPABp7OrK629vUP5z8++LLh2XXD05L++yxrvC4/F5EZ12WBS8saLS5Ys2U2lUufUY45SqQSlUgkqlQrUavXj19jYGGg0GtBoNKDT6UCn05VotVq1TqfToFAojFar1eh0Og0Wi8XhcDgeGo1+/PhgZmYGOBwOsFgsmJmZ/eY1F+nt7YXa2trs2Z73wdCQBgCMHp1IJpHA09MdPD3dLRIS+OtKisvWvbP7vf2lZdePVFwzbHTwyMiI3hidkZFRUKvUYzOZ48HQkBIA5nWqBAqFAktLC7C0tADmIh88Pz4uMSyUk7hn776DV4tKPn/6d/lNxp1MJqsRCASf8vn8XdMpOjRTVCoVjI2NgUqlAq1WCyMjI9DX1wf379+Hvr6+/Q8ePOgdGRmRKxSKx0WLFAqFXKlUKnQ6nUar1arHq47mxwrD4/F4Eg6HI2GxWDwej7cgkUjWFAqFam5uTjU3N6eRyeQPLSwswNraGqysrIBAIDwWFywW+zja11Qi29LSclIikeSZZPJZBovBAI8XA8HBQR9kZZ3lR8cmvFZSlGe00p8IkwONRkNERBj4+i7a4+XpHv307/IbMakWlciXJbx0nMPh7Jqo0JGh0el0MDo6Cl1dXSCVSkEmk7177969W319fe1DQ0M9KpVKoVarlWq1WjndNhUPG3ApAWDcOxLTLwSDwWAOotFoDBaLxRMIBAsrKysne3t7Xzqd7k2n0/c4OzsDlUoFHA4364IyMDAATU1NxdWikhcq6tXKyhJezljPJZKI2eERS5cZeoWCMD2srCwhPX0tVzk2djiCG//GtfLLUoBxShB0dHTU3Lx580sLC4vtJBLJKMZoNBqQSqUglUqPdnR01PT09DT19/fLHjx40DM0NNQ72933GiSVGgB4JFQK+LfoSAGgnL04yppEIh2xtLS0t7GxcaFSqR7Ozs4fMRgMcHR0nJX8pJs3b54Ui8UXjT7RHIRMIkFK8irfwcEHPwQELUmqvYHUGJkLmJubw8YNa/i9vfffY/px3myQiDTPiEl9nVDDX576jaenZ7SnpyfLUJNrNBqQyWRw+/bt4x0dHTdkMlltV1dXw/XygjkdEv4wB0YOAK0AUM70C8HQ6fSzdDrdm0qlejg6OrLc3Ny2MBiMadWjfR4PHjyAmzdvZs/1v5MxoVAokJK8iicWS95k+nH+s0EiQhqpzQGoVFtYk5a87ba0XQAA34xbpagg/5zoT7s/OGNnZ8eaaYkBuVwOnZ2d5VKpVNTS0lLS2NhYWFVZ3Dujg5qQh6uY+ocvCAiKIPn4+Jz19PSMdnV15VCpVL6Dg4NBViw6nQ5EItHRpqamqzM+2DzHzo4O69amftLQeKsAZrDLgmBY/PyYsCIhfs+SiKUFE5Y8EwqFx11cXDihoaFTjjFAoVAwPDwMHR0dourq6jNCofDHhZqUVnvjmgIAcgAgJyg40mLRokX8kJCQjT4+PussLS1n1JPl7t27UFxcfHguB6mNjY2B7G4naNRTWyygUCjAYDGAx+PB0sICSCSi3vFYLBbCwjjA8vddBQtATKb7d3saBwc7IJPJBpsHjUGDGRYLJBIJLK0sAfucmyIGg4FFi3y8AwNZtycUk5KiS02vvf7WWQaDkejg4DApQwAeh3xDaWnpPoFAcPxFqnP6sEvgGf+A8Bx3d/cvIyIiNi1evHjT8wpNj8fAwACUlZW9P9dD5+/ckcFbf9gd2dcnn9LNAovF4inmZHtXNxdOdBR3+/JlS33pdP29wolEInA4weuiYxOy5vvuTkeHDHb+8c8xvb33Z3R9/N+Df+uIjYk02DwkEsna2trS1d/fNyGeF7uTyw1/7g3R3t4O2OxA/TVghULhcQqFQk1JSfmYSNR/5wD4d6EfgUBwvLS09IhUKhW9qAV5H9YjKQwJi6uvrKw8ERoamhkSEpKp7w7yJEqlEiQSyZmysrJv53qjdaVSCZdyTk+3qFMrAJRHRPLPN95qeifj5fU7mYt8JhyMRqMhMJDFdnF25gDAvBYTpXIMWlpay2fq/8m5mDcIABYGnEcGAGI/VlhBZWX1yZdSkz55OX0dV5+7w9bGGvz8mPrFpK62QskJjf2GTqd7x8bGbpnID4BCoUAmk0lLSkqOiESik2UleS/MakQflYKrXQDQxY1a3tTe3i6KiIjY5OXlxX7e9+rr6wsuXbr0t4ffn9OgMWjghMZQRcLp+8GulRVI/QPC37Wxtnal0ajJtjY2E451ZjiBra31vE9lR2PQQKFQaAAwo98Yi8Xq9fpPd56HO6rlvKWJv/PwcK+JilyCmajWMw6HAzs7+rMFpQOCIn6zHywSFvXm5eUdFAqFZ9Rq9bgHa2trq79w4cK+zz49cAARkmcpL81v/a/Dhz49d+7c3qqqqjyVSjXuOJ1OBxKJpDw3N/fA5V+zax6978cKw/sHhM/raMrnUVdboSy4fPWQSFSjd5yFBQWIRNKEd2IEw1J4JUd88WL+R51d3XrHWVDMnxUTa2tr1zXrNiUGsrmPf7DS4tymCxcu7Kuurs55+kKQSqVN586d23vs+8NHDXUCC5Wzp3/Iy8rKeruysvLM2Nhvo7VVKhXU1tYWnj17du/T7UOdnZ2D7OzsfGGB09raVi4S1RzXl0eFw+EAj8chYjKLVFffyOrq1C8mJBLpWTFRKBRyDofzC4vFWvXk+1ev/CLOzs7eKxAIslQqFeh0Oujp6enKzs7em/XTd7OayTqfKb56sT4rK+sPAoHg5KO/o0KhAKFQmHXy5MkdF3/5+TeZmctXpIXZ29v7zqVcKWNRX1epuXu3U/y8pEw0GmndOZt0dnXVDw0P6/W5oNHoZ30mQ0NDPb29vfvj4+Pf3rR5B/7od188XnEUXr4gDgmL+0NfX5/U19d3d3l5+YGfTnyDtLmcIhXXLsu4UcvfR6PRGGtra9eysrIjYrE45+kt4Fheou/69es/unnz5vm7d+/Wmsre2WRkZGTQ1DYg/JYGiUiTm1ugBAC9IfHPiEmDpFITE7fqJI/H27lmzZpDq5LWtz55t6wUXO3ihMYerK+vz2tpaUFaM0yT8tL81ujYle+TSCTrvEunBU9/voTLd92wYcPHVCqV39XVdXCu7+oYCp1O90Kc50Jk3I5+xVcv1jc3N5d4enpSMzIyvkpK3sh78nORsKg3++yPBS/q1q+hKCm61DSekERGJ3ikp6d/ERsbm1xVVXWwtbX1hRFtFAqFPMLMUyZsDyoQCI7LZDKIiIjwzczM/GpV0vro2TTsRSUqZoX3+vXrP1u9enXi0NAQiESirIdRtggIc5oJ40zq6uryGhoa8ry8vBJCQ0O9USjU94mrN7yWc+EnvaXb5gJMvxCMp6cnl0Kh2Le1tZVXXLs8L1LXefGrWRkZGZ/x+XyeUqkEkUh0vqenZ14HZyG8OEwoJjdrygd37NxTEBkZmWBtbQ3BwcEeKBTq+/UbX3/355Pfzlmn66qk9dGbN29+k8PhbCSRSNDZ2Snb9ae/HCkpKTksEhbN2QTD5NSX+Vu3bj0cHBzsjcFg4O7du1BWVvbNwxB9BIQ5j94I2Fu3bhXW19cDl8sFLBYLHA7Hg0wmf/e77e84ffXlPz6fLSMnQ2paZkJ4eHjmtm3b+B4eHvZkMhlQKBTY29s72dvbfxgUFJT8x7ffP1NRUfHjXErnZ/qFYKKjo7dt3rz5g8DAQPtH/XHa2tpqGhsbC55/BASEuYFeMblz505NTU3NgfDw8PcwGAygUCjw9fW1IJPJn/1130Hv0tLSI4WXL4hny9inYS+Osvbz80tgMpn8jIwMPovFch2vpoiDgwM4ODhwfH19OYsWLeJv3/Hu+cbGxquzXZz5aZYlvMRJT0/fFhkZue3JZmfd3d0gEolOIr4ShPmEXjFpkFRqXlrzSnFnZ+d7Tk5OjzNfXVxcICMjY6ezszNnVdL6vU8HWhmbgKAIkrOzMyc1NTXz0YU4maAuOp0OK1as4EVFRfGEQqHg1dfePHzr1q2rs71S8WOF4f38/BLS09M/iIyM5DxdxLq5uVlcVVU1bgVwBIS5il4xAQCQyWRigUBwJikpKe3JVGQcDgdLly7l2tranti0ecf7IpEoy9hbxX6sMDydTvdevXr1ltjY2F3u7u6AxT73FJ7B3Nwc4uLiwthsdphQKCzZkL7l0/r6+oKbNeVG90+EhMXZL1++fFtycvKHrq6uz4igUqmE5ubmEiTHCWG+8dwrUXD9imz9xtd/jIuLS7N5KpsTjUZDUFCQE4PB+F4oFGYmJW888Mv5k4UTHGpGxC9LYaenp78VEhKyxdHRESgUyoyOh0KhwNraGuLi4qIDAgKi6+rqyjekb/mHMSN6N6RvSdu+ffseNpsdZm09ftuW+vp6EIvFSB9hhHnHpG7rUqm0orW1tdXS0tLj6TIEaDQaaDQaxMfH811dXTl/3Xfw+JUrVz411J01cfWG6IiIiC07d+5McHNzs7ewMGyOFw6HAwcHB6BSqVx3d/fwz7/4rkAgEBwXCoUnHpZonDGrU9J5MTEx27du3Zrm4uKC0beaqq6u/ry+vj7XEPMiIMwmkxKTimuXZe/u+fCkp6fnexPdUfF4PPj7+1szGIydLi4unF1/+kvenTt3RG1tbRXTqfma8lIG39/fP/HVV19NZrFYHpMpzjQTzMzMwNPTE+Pp6Zng6emZ4Ofnl5CesfV8bW1tznQe3/wDwvFeXl7Rvr6+Ca+88kpaUFCQh74GXzqdDrq7u6GpqankRQmdR1hYTNrhUFVVlcXj8d6ysrKy0OfstLS0hPj4eC6Xy+U2NzeDRCI5/sa2XeX37t1rGhwc7BoYGJBN1P+FFbiE5OzszGaxWImvvvrqpoCAAKfp+ERmCpPJBCaTmcnhcDJLS0u/TE59+YxUKhXoi/lg+oVgrKysGJaWlna2trYeaWlpXDabvTMgIGDSfp2KiorzbW1tL0zoPMLCYtJX6uVfs2u++PKowMPDgz+ZIslEIhECAgKAxWJlajSazJ6eHmhra4PW1tZvtmz9o6Czs7O+r6+vfWxsbFir1WosLCzsV6xYkcnj8d7z9vaelmPV0Hh5eYGnp+f2mJiY7UVFRZ/HL0v5tru7+5ZGo1FisVg8Docj4fF4CxsbG1c+nx/m7e39sYeHB7i4uIC5ufmU6r4ODQ1BZWXlifkSrYuA8DRTumIrKytPent78728vCb9HRQKBVgsFhwcHIBOpwObzd4yNja2RaVSwdDQEHR1dcHo6CjQaDRwdXWdsWPV0KBQKPDw8AA7O7udERERO2tra2FgYACoVCo4OTkBjUYDMpkMeDz+8WuqaLVaaGxsbL19+/YzSX8ICPOFqYrJidDQ0AwvLy/e80c/CwaDARKJBI86BdJoNHB3dwe1Wj0nViL6IJPJwGQywdnZGZRKJRAIBDBUx8OBgQEoLS39BtkORpjPTJg1PB61N64pmpqarvb39xvUiLkuJE9CJpPBxsbGYEICANDZ2SlHgtQQ5jtTEhMAgLq6ulyJRFJvDGNeREZGRkAikRSUFuci2cEI85opi0l+7hmBWCzOeV6dToTJcfv27cHr168jxbgR5j1TFhMAgObm5hKZDNl0MAQtLS3Xzpw6hkS8Isx7piUmUqlUIBAIJuyjgzA5Ojs7QSKRINGuCAuCaYmJsKKw68qVK59KJJIu5HFneiiVSigqKjouEolOmtoWBARDMC0xAQC4+MvPJadOnXq3ra1N8yL0dDEkOp0OSktLy/Pz8w8+3d4CAWG+Mm0xAQA4fuy/jl+8ePGju3fvGsqeBY9Wq4XKysrWU6dOvX31yi8mKyyFgGBoZiQmAAD/79D+fadPn96PCMrz0el0UFVV1frtt9+mj9fiAgFhPjNjMQEAyMvLO3Ds2LE/tLS0INmuerh27Vr9999//xoiJAgLEYOEntbVVigB4PNNm3cMpqSkfMRms50McdyFgkqlgqKiovJTp069nZ97BhEShAWJQePYj373xdF1GzbLFQrFx6Ghob766ne8KNy7dw+KiopO5ubmfmTK4tsICMbG4EkxWT99d35l4rre/v7+D0NCQvh0Ot3QU8wL1Go1SKVSTX5+/sH8/PyDSP8bhIWOUTLsLuVklQcFR65pbGzcvnLlyvfc3NwsCASCMaaac+h0OhgaGoLq6uqaCxcu/OV01tGcTw7uM7VZCAhGx2jpug/vxAd58atzoqKitq1cuXKnvb29saabE+h0Oqiurpbm5eUdrK6uPlspuDrvY0hmO4YIhUIBGq1/X2CmNqFQKL3/79HomZ/z82xEowyy9zFr80zGDqPn/hdeviBmL47ad+fOnRsRERGbQkNDo62srIw97azT2dkJxcXFx0tKSo7Mdh8hY4LD4TDPH2U4MFjMc6tLmZmZzaj+Aw6H0/t9PB4PGCxmRudNJBL0ngeZTAI0Gj3jv+1szfM88Hic8cUEAKCmqlQOAN/ELU2qkEgkySwWK3HRokVcBoMxG9MbDZ1OB83NzdDU1FRQW1t7XiAQHJ+ovu18pbr6Rg6L5ZtoM0EhcUPT0tJW8tWRb0vQqIkvgKqqmhnVfrl2TfANXo+gjKlUio4OWc1M5sjOzjnQUH8rbqLPu3t6moaGhmfc+3q25tGHUqmECoEIUKbIrVkcEkONiIh4jcvlvu7s7OxLo9GmVe7QVCgUCujq6oKGhoaCioqKo9XV1WeM3YDMVPDik1gpyas+XrVyeaKXl8czjyANjbcgI/MNmkg49Q4ECPOH3NyC4RUr+M8IcHt7B1y9WlKRl3/5kElKnD1sfXEoJCzueEBAQGJYWFgGk8nk2djYAIFAgLm4pTw6Ogqjo6Mgl8vhxo0b50tLS4/U19fnLvS2FIWXfxEDQNLmLW9ueW1TxtchHDaQyWRTm4VgYkZHR6G+vhF+/NfP+y5e+vVjiVgwZpKVydOwF0dZW1lZOTGZTD6bzU4LCAiIptPp8HTDL1MwOjoKLS0tUFdXd1IsFudIpdKKgYGB7tloJTrX4MUnsVJTEj9etzY10dHRAQAAGm81wcsZW5CVyQInL69gNCGBjwcAGBx8ANnncypOnTr3H9nn/reD55wovvrQpyIHAHFUzIocGo3mQaPRfBwdHVlubm7bXF1dgcFgABqNNvruglwuh7t374JMJoOOjo7P79y5I+ru7m7q7e1tXQi7MzOh8PIv4pCw2DdaWtte37Au7aPIyCWAxWABjUbPif9HCMbjURtKiaQBfvr5zH9evlJ0uLQ4r/nJMXNiZTIRrMAlJAcHB18HBweWo6Mjy8rKajeJRAJLS0uwtLQECwsLoFAogMfjAYvFgpmZ2XNXMyqVCoaHh2FoaAiGh4cfvwYGBqCvrw+6u7vfvnfvXlNvb29rT09Pq0QsUM7S6c4rNqS/lrZ5U+YPRBKR9M7u9xwqBUUvtNAudH766XSLE8PR49ixE78/8tVnX403Zk7fUR46NUUAIPIPCMdTKJTdNjY2QKPRgE6nA51OB1tbWyCRSIDD4YBAIAAejwcCgfDYUajVakGlUoFarQadTvfY79HX1wf9/f0gl8tBLpfDvXv3HvXw+dxQPYYXMj+d+P7Mmzv+5OHr6/OJWq1GBHeB09TcUiKuq/coKS3/eqIx/wPkiIXC3w6YjAAAAABJRU5ErkJggg=="); --keyword: #ff79c6; --identifier: #f8f8f2; --comment: #6272a4; --operator: #ff79c6; --punctuation: #f8f8f2; --other: #f8f8f2; --escapeSequence: #bd93f9; --number: #bd93f9; --literal: #f1fa8c; --program: #9090c0; --option: #90b010; --raw-data: #8be9fd; } .theme-switch-wrapper { display: flex; align-items: center; } .theme-switch-wrapper em { margin-left: 10px; font-size: 1rem; } .theme-switch { display: inline-block; height: 22px; position: relative; width: 50px; } .theme-switch input { display: none; } .slider { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; } .slider:before { background-color: #fff; bottom: 4px; content: ""; height: 13px; left: 4px; position: absolute; transition: .4s; width: 13px; } input:checked + .slider { background-color: #66bb6a; } input:checked + .slider:before { transform: translateX(26px); } .slider.round { border-radius: 17px; } .slider.round:before { border-radius: 50%; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body { font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 1.125em; line-height: 1.5; color: var(--text); background-color: var(--primary-background); } /* Skeleton grid */ .container { position: relative; width: 100%; max-width: 1050px; margin: 0 auto; padding: 0; box-sizing: border-box; } .column, .columns { width: 100%; float: left; box-sizing: border-box; margin-left: 1%; } .column:first-child, .columns:first-child { margin-left: 0; } .three.columns { width: 22%; } .nine.columns { width: 77.0%; } .twelve.columns { width: 100%; margin-left: 0; } @media screen and (max-width: 860px) { .three.columns { display: none; } .nine.columns { width: 98.0%; } body { font-size: 1em; line-height: 1.35; } } cite { font-style: italic !important; } /* Nim search input */ div#searchInputDiv { margin-bottom: 1em; } input#searchInput { width: 80%; } /* * Some custom formatting for input forms. * This also fixes input form colors on Firefox with a dark system theme on Linux. */ input { -moz-appearance: none; background-color: var(--secondary-background); color: var(--text); border: 1px solid var(--border); font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; font-size: 0.9em; padding: 6px; } input:focus { border: 1px solid var(--input-focus); box-shadow: 0 0 3px var(--input-focus); } select { -moz-appearance: none; background-color: var(--secondary-background); color: var(--text); border: 1px solid var(--border); font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif; font-size: 0.9em; padding: 6px; } select:focus { border: 1px solid var(--input-focus); box-shadow: 0 0 3px var(--input-focus); } /* Docgen styles */ /* Links */ a { color: var(--anchor); text-decoration: none; } a span.Identifier { text-decoration: underline; text-decoration-color: #aab; } a.reference-toplevel { font-weight: bold; } a.toc-backref { text-decoration: none; color: var(--text); } a.link-seesrc { color: #607c9f; font-size: 0.9em; font-style: italic; } a:hover, a:focus { color: var(--anchor-focus); text-decoration: underline; } a:hover span.Identifier { color: var(--anchor); } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { width: auto; height: auto; max-width: 100%; vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; } @media print { * { color: black !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } @page { margin: 0.5cm; } h1 { page-break-before: always; } h1.title { page-break-before: avoid; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } p { margin-top: 0.5em; margin-bottom: 0.5em; } small { font-size: 85%; } strong { font-weight: 600; font-size: 0.95em; color: var(--strong); } em { font-style: italic; } h1 { font-size: 1.8em; font-weight: 400; padding-bottom: .25em; border-bottom: 6px solid var(--third-background); margin-top: 2.5em; margin-bottom: 1em; line-height: 1.2em; } h1.title { padding-bottom: 1em; border-bottom: 0px; font-size: 2.5em; text-align: center; font-weight: 900; margin-top: 0.75em; margin-bottom: 0em; } h2 { font-size: 1.3em; margin-top: 2em; } h2.subtitle { margin-top: 0em; text-align: center; } h3 { font-size: 1.125em; font-style: italic; margin-top: 1.5em; } h4 { font-size: 1.125em; margin-top: 1em; } h5 { font-size: 1.125em; margin-top: 0.75em; } h6 { font-size: 1.1em; } ul, ol { padding: 0; margin-top: 0.5em; margin-left: 0.75em; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; margin-left: 1.25em; } ul.simple > li { list-style-type: circle; } ul.simple-boot li { list-style-type: none; margin-left: 0em; margin-bottom: 0.5em; } ol.simple > li, ul.simple > li { margin-bottom: 0.2em; margin-left: 0.4em } ul.simple.simple-toc > li { margin-top: 1em; } ul.simple-toc { list-style: none; font-size: 0.9em; margin-left: -0.3em; margin-top: 1em; } ul.simple-toc > li { list-style-type: none; } ul.simple-toc-section { list-style-type: circle; margin-left: 0.8em; color: #6c9aae; } ul.nested-toc-section { list-style-type: circle; margin-left: -0.75em; color: var(--text); } ul.nested-toc-section > li { margin-left: 1.25em; } ol.arabic { list-style: decimal; } ol.loweralpha { list-style: lower-alpha; } ol.upperalpha { list-style: upper-alpha; } ol.lowerroman { list-style: lower-roman; } ol.upperroman { list-style: upper-roman; } ul.auto-toc { list-style-type: none; } dl { margin-bottom: 1.5em; } dt { margin-bottom: -0.5em; margin-left: 0.0em; } dd { margin-left: 2.0em; margin-bottom: 3.0em; margin-top: 0.5em; } hr { margin: 2em 0; border: 0; border-top: 1px solid #aaa; } hr.footnote { width: 25%; border-top: 0.15em solid #999; margin-bottom: 0.15em; margin-top: 0.15em; } div.footnote-group { margin-left: 1em; } div.footnote-label { display: inline-block; min-width: 1.7em; } div.option-list { border: 0.1em solid var(--border); } div.option-list-item { padding-left: 12em; padding-right: 0; padding-bottom: 0.3em; padding-top: 0.3em; } div.odd { background-color: var(--secondary-background); } div.option-list-label { margin-left: -11.5em; margin-right: 0em; min-width: 11.5em; display: inline-block; vertical-align: top; } div.option-list-description { width: calc(100% - 1em); padding-left: 1em; padding-right: 0; display: inline-block; } blockquote { font-size: 0.9em; font-style: italic; padding-left: 0.5em; margin-left: 0; border-left: 5px solid #bbc; } .pre, span.tok { font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace; font-weight: 500; font-size: 0.85em; color: var(--text); background-color: var(--third-background); padding-left: 3px; padding-right: 3px; border-radius: 4px; } span.tok { border: 1px solid #808080; padding-bottom: 0.1em; margin-right: 0.2em; } pre { font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace; color: var(--text); font-weight: 500; display: inline-block; box-sizing: border-box; min-width: 100%; padding: 0.5em; margin-top: 0.5em; margin-bottom: 0.5em; font-size: 0.85em; white-space: pre !important; overflow-y: hidden; overflow-x: visible; background-color: var(--secondary-background); border: 1px solid var(--border); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } /* Nim line-numbered tables */ .line-nums-table { width: 100%; table-layout: fixed; } table.line-nums-table { border-radius: 4px; border: 1px solid #cccccc; background-color: ghostwhite; border-collapse: separate; margin-top: 15px; margin-bottom: 25px; } .line-nums-table tbody { border: none; } .line-nums-table td pre { border: none; background-color: transparent; } .line-nums-table td.blob-line-nums { width: 28px; } .line-nums-table td.blob-line-nums pre { color: #b0b0b0; -webkit-filter: opacity(75%); filter: opacity(75%); text-align: right; border-color: transparent; background-color: transparent; padding-left: 0px; margin-left: 0px; padding-right: 0px; margin-right: 0px; } table { max-width: 100%; background-color: transparent; margin-top: 0.5em; margin-bottom: 1.5em; border-collapse: collapse; border-color: var(--third-background); border-spacing: 0; font-size: 0.9em; } table th, table td { padding: 0px 0.5em 0px; border-color: var(--third-background); } table th { background-color: var(--third-background); border-color: var(--third-background); font-weight: bold; } table th.docinfo-name { background-color: transparent; text-align: right; } table tr:hover { background-color: var(--third-background); } /* rst2html default used to remove borders from tables and images */ .borderless, table.borderless td, table.borderless th { border: 0; } table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". The right padding separates the table cells. */ padding: 0 0.5em 0 0 !important; } .admonition { padding: 0.3em; background-color: var(--secondary-background); border-left: 0.4em solid #7f7f84; margin-bottom: 0.5em; -webkit-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2); -moz-box-shadow: 0 5px 8px -6px rgba(0,0,0,.2); box-shadow: 0 5px 8px -6px rgba(0,0,0,.2); } .admonition-info { border-color: var(--info-background); } .admonition-info-text { color: var(--info-background); } .admonition-warning { border-color: var(--warning-background); } .admonition-warning-text { color: var(--warning-background); } .admonition-error { border-color: var(--error-background); } .admonition-error-text { color: var(--error-background); } .first { /* Override more specific margin styles with "! important". */ margin-top: 0 !important; } .last, .with-subtitle { margin-bottom: 0 !important; } .hidden { display: none; } blockquote.epigraph { margin: 2em 5em; } dl.docutils dd { margin-bottom: 0.5em; } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } div.figure { margin-left: 2em; margin-right: 2em; } div.footer, div.header { clear: both; text-align: center; color: #666; font-size: smaller; } div.footer { padding-top: 5em; } div.line-block { display: block; margin-top: 1em; margin-bottom: 1em; } div.line-block div.line-block { margin-top: 0; margin-bottom: 0; margin-left: 1.5em; } div.topic { margin: 2em; } div.search_results { background-color: var(--third-background); margin: 3em; padding: 1em; border: 1px solid #4d4d4d; } div#global-links ul { margin-left: 0; list-style-type: none; } div#global-links > simple-boot { margin-left: 3em; } hr.docutils { width: 75%; } img.align-left, .figure.align-left, object.align-left { clear: left; float: left; margin-right: 1em; } img.align-right, .figure.align-right, object.align-right { clear: right; float: right; margin-left: 1em; } img.align-center, .figure.align-center, object.align-center { display: block; margin-left: auto; margin-right: auto; } .align-left { text-align: left; } .align-center { clear: both; text-align: center; } .align-right { text-align: right; } /* reset inner alignment in figures */ div.align-right { text-align: inherit; } p.attribution { text-align: right; margin-left: 50%; } p.caption { font-style: italic; } p.credits { font-style: italic; font-size: smaller; } p.label { white-space: nowrap; } p.rubric { font-weight: bold; font-size: larger; color: maroon; text-align: center; } p.topic-title { font-weight: bold; } pre.address { margin-bottom: 0; margin-top: 0; font: inherit; } pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em; margin-right: 2em; } pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee; } pre.code .comment, code .comment { color: #5c6576; } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold; } pre.code .literal.string, code .literal.string { color: #0c5404; } pre.code .name.builtin, code .name.builtin { color: #352b84; } pre.code .deleted, code .deleted { background-color: #DEB0A1; } pre.code .inserted, code .inserted { background-color: #A3D289; } span.classifier { font-style: oblique; } span.classifier-delimiter { font-weight: bold; } span.problematic { color: #b30000; } span.section-subtitle { /* font-size relative to parent (h1..h6 element) */ font-size: 80%; } span.DecNumber { color: var(--number); } span.BinNumber { color: var(--number); } span.HexNumber { color: var(--number); } span.OctNumber { color: var(--number); } span.FloatNumber { color: var(--number); } span.Identifier { color: var(--identifier); } span.Keyword { font-weight: 600; color: var(--keyword); } span.StringLit { color: var(--literal); } span.LongStringLit { color: var(--literal); } span.CharLit { color: var(--literal); } span.EscapeSequence { color: var(--escapeSequence); } span.Operator { color: var(--operator); } span.Punctuation { color: var(--punctuation); } span.Comment, span.LongComment { font-style: italic; font-weight: 400; color: var(--comment); } span.RegularExpression { color: darkviolet; } span.TagStart { color: darkviolet; } span.TagEnd { color: darkviolet; } span.Key { color: #252dbe; } span.Value { color: #252dbe; } span.RawData { color: var(--raw-data); } span.Assembler { color: #252dbe; } span.Preprocessor { color: #252dbe; } span.Directive { color: #252dbe; } span.option { font-weight: bold; font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace; color: var(--option); } span.Prompt { font-weight: bold; color: red; } span.ProgramOutput { font-weight: bold; color: #808080; } span.program { font-weight: bold; color: var(--program); text-decoration: underline; text-decoration-color: var(--hint); text-decoration-thickness: 0.05em; text-underline-offset: 0.15em; } span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference, span.Other { color: var(--other); } /* Pop type, const, proc, and iterator defs in nim def blocks */ dt pre > span.Identifier, dt pre > span.Operator { color: var(--identifier); font-weight: 700; } dt pre > span.Keyword ~ span.Identifier, dt pre > span.Identifier ~ span.Identifier, dt pre > span.Operator ~ span.Identifier, dt pre > span.Other ~ span.Identifier { color: var(--identifier); font-weight: inherit; } /* Nim sprite for the footer (taken from main page favicon) */ .nim-sprite { display: inline-block; width: 51px; height: 14px; background-position: 0 0; background-size: 51px 14px; -webkit-filter: opacity(50%); filter: opacity(50%); background-repeat: no-repeat; background-image: var(--nim-sprite-base64); margin-bottom: 5px; } span.pragmadots { /* Position: relative frees us up to make the dots look really nice without fucking up the layout and causing bulging in the parent container */ position: relative; /* 1px down looks slightly nicer */ top: 1px; padding: 2px; background-color: var(--third-background); border-radius: 4px; margin: 0 2px; cursor: pointer; font-size: 0.8em; } span.pragmadots:hover { background-color: var(--hint); } span.pragmawrap { display: none; } span.attachedType { display: none; visibility: hidden; } ================================================ FILE: docs/nis.html ================================================ src/cpython/nis

src/cpython/nis

    Dark Mode
Search:
Group by:

Procs

proc match(key, mapname: string): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_default_domain(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/ntpath.html ================================================ src/cpython/ntpath

src/cpython/ntpath

Procs

proc abspath(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc basename(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc commonprefix(s: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc dirname(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc exists(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc expanduser(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc expandvars(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getatime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getctime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getmtime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getsize(s: string): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isabs(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isdir(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isfile(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc islink(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc ismount(s: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc join(a, b: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc lexists(s: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc normcase(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc normpath(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc relpath(path, start: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc samefile(path1, path2: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc split(s: string): tuple[head, tail: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc splitdrive(s: string): tuple[drive, path: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/operator.html ================================================ src/cpython/operator

src/cpython/operator

    Dark Mode
Search:
Group by:

Procs

proc lt(a, b: auto): bool
proc eq(a, b: auto): bool
proc le(a, b: auto): bool
proc ne(a, b: auto): bool
proc ge(a, b: auto): bool
proc gt(a, b: auto): bool
proc add(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc add(a, b: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc floordiv(a, b: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc floordiv(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc lshift(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc lshift(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mul(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc mul(a, b: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc matmul(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc matmul(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pow(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc pow(a, b: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc rshift(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc rshift(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sub(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc sub(a, b: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc truediv(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc truediv(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc index(a: auto): int
proc truth(a: auto): bool
proc abs(a: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc abs(a: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc invert(a: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc invert(a: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc neg(a: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc neg(a: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc pos(a: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc pos(a: float): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc iadd(a, b: float or int)
proc iand(a, b: float or int)
proc iconcat(a, b: float or int)
proc ifloordiv(a, b: float or int)
proc ilshift(a, b: float or int)
proc imod(a, b: float or int)
proc imul(a, b: float or int)
proc imatmul(a, b: float or int)
proc ior(a, b: float or int)
proc ipow(a, b: float or int)
proc irshift(a, b: float or int)
proc isub(a, b: float or int)
proc itruediv(a, b: float or int)
proc ixor(a, b: float or int)
proc delitem(a: seq[int]; b: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc delitem(a: seq[char]; b: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc delitem(a: seq[bool]; b: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc delitem(a: seq[float]; b: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc delitem(a: seq[string]; b: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc indexOf(a: seq[int]; b: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc indexOf(a: seq[char]; b: char): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc indexOf(a: seq[bool]; b: bool): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc indexOf(a: seq[float]; b: float): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc indexOf(a: seq[string]; b: string): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a, b: seq[int]): seq[int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc concat(a, b: seq[char]): seq[char] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a, b: seq[bool]): seq[bool] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a, b: seq[float]): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a, b: seq[string]): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a: seq[int]; b: int): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a: seq[char]; b: char): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a: seq[bool]; b: bool): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a: seq[float]; b: float): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc concat(a: seq[string]; b: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc countOf(a: seq[int]; b: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc countOf(a: seq[char]; b: char): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc countOf(a: seq[bool]; b: bool): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc countOf(a: seq[float]; b: float): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc countOf(a: seq[string]; b: string): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc length_hint(obj: auto; default = 0): int
proc setitem(a: seq[int]; b: int; c: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setitem(a: seq[char]; b: int; c: char): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setitem(a: seq[bool]; b: int; c: bool): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setitem(a: seq[float]; b: int; c: float): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setitem(a: seq[string]; b: int; c: string): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/os.html ================================================ src/cpython/os

src/cpython/os

    Dark Mode
Search:
Group by:

Lets

name: string = to(getAttr(pyImport("os"), "name"), string)
curdir: string = to(getAttr(pyImport("os"), "curdir"), string)
pardir: string = to(getAttr(pyImport("os"), "pardir"), string)
sep: string = to(getAttr(pyImport("os"), "sep"), string)
altsep: string = to(getAttr(pyImport("os"), "altsep"), string)
extsep: string = to(getAttr(pyImport("os"), "extsep"), string)
pathsep: string = to(getAttr(pyImport("os"), "pathsep"), string)
defpath: string = to(getAttr(pyImport("os"), "defpath"), string)
linesep: string = to(getAttr(pyImport("os"), "linesep"), string)
devnull: string = to(getAttr(pyImport("os"), "devnull"), string)
PRIO_PROCESS: int = to(getAttr(pyImport("os"), "PRIO_PROCESS"), int)
PRIO_PGRP: int = to(getAttr(pyImport("os"), "PRIO_PGRP"), int)
PRIO_USER: int = to(getAttr(pyImport("os"), "PRIO_USER"), int)
F_LOCK: int = to(getAttr(pyImport("os"), "F_LOCK"), int)
F_TLOCK: int = to(getAttr(pyImport("os"), "F_TLOCK"), int)
F_ULOCK: int = to(getAttr(pyImport("os"), "F_ULOCK"), int)
F_TEST: int = to(getAttr(pyImport("os"), "F_TEST"), int)
SEEK_SET: int = to(getAttr(pyImport("os"), "SEEK_SET"), int)
SEEK_CUR: int = to(getAttr(pyImport("os"), "SEEK_CUR"), int)
SEEK_END: int = to(getAttr(pyImport("os"), "SEEK_END"), int)
O_RDONLY: int = to(getAttr(pyImport("os"), "O_RDONLY"), int)
O_WRONLY: int = to(getAttr(pyImport("os"), "O_WRONLY"), int)
O_RDWR: int = to(getAttr(pyImport("os"), "O_RDWR"), int)
O_APPEND: int = to(getAttr(pyImport("os"), "O_APPEND"), int)
O_CREAT: int = to(getAttr(pyImport("os"), "O_CREAT"), int)
O_EXCL: int = to(getAttr(pyImport("os"), "O_EXCL"), int)
O_TRUNC: int = to(getAttr(pyImport("os"), "O_TRUNC"), int)
O_DSYNC: int = to(getAttr(pyImport("os"), "O_DSYNC"), int)
O_RSYNC: int = to(getAttr(pyImport("os"), "O_RSYNC"), int)
O_SYNC: int = to(getAttr(pyImport("os"), "O_SYNC"), int)
O_NDELAY: int = to(getAttr(pyImport("os"), "O_NDELAY"), int)
O_NONBLOCK: int = to(getAttr(pyImport("os"), "O_NONBLOCK"), int)
O_NOCTTY: int = to(getAttr(pyImport("os"), "O_NOCTTY"), int)
O_CLOEXEC: int = to(getAttr(pyImport("os"), "O_CLOEXEC"), int)
O_BINARY: int = to(getAttr(pyImport("os"), "O_BINARY"), int)
O_NOINHERIT: int = to(getAttr(pyImport("os"), "O_NOINHERIT"), int)
O_SHORT_LIVED: int = to(getAttr(pyImport("os"), "O_SHORT_LIVED"), int)
O_TEMPORARY: int = to(getAttr(pyImport("os"), "O_TEMPORARY"), int)
O_RANDOM: int = to(getAttr(pyImport("os"), "O_RANDOM"), int)
O_SEQUENTIAL: int = to(getAttr(pyImport("os"), "O_SEQUENTIAL"), int)
O_TEXT: int = to(getAttr(pyImport("os"), "O_TEXT"), int)
O_EVTONLY: int = to(getAttr(pyImport("os"), "O_EVTONLY"), int)
O_FSYNC: int = to(getAttr(pyImport("os"), "O_FSYNC"), int)
O_SYMLINK: int = to(getAttr(pyImport("os"), "O_SYMLINK"), int)
O_NOFOLLOW_ANY: int = to(getAttr(pyImport("os"), "O_NOFOLLOW_ANY"), int)
O_ASYNC: int = to(getAttr(pyImport("os"), "O_ASYNC"), int)
O_DIRECT: int = to(getAttr(pyImport("os"), "O_DIRECT"), int)
O_DIRECTORY: int = to(getAttr(pyImport("os"), "O_DIRECTORY"), int)
O_NOFOLLOW: int = to(getAttr(pyImport("os"), "O_NOFOLLOW"), int)
O_NOATIME: int = to(getAttr(pyImport("os"), "O_NOATIME"), int)
O_PATH: int = to(getAttr(pyImport("os"), "O_PATH"), int)
O_TMPFILE: int = to(getAttr(pyImport("os"), "O_TMPFILE"), int)
O_SHLOCK: int = to(getAttr(pyImport("os"), "O_SHLOCK"), int)
O_EXLOCK: int = to(getAttr(pyImport("os"), "O_EXLOCK"), int)
POSIX_FADV_NORMAL: int = to(getAttr(pyImport("os"), "POSIX_FADV_NORMAL"), int)
POSIX_FADV_SEQUENTIAL: int = to(getAttr(pyImport("os"), "POSIX_FADV_SEQUENTIAL"),
                                int)
POSIX_FADV_RANDOM: int = to(getAttr(pyImport("os"), "POSIX_FADV_RANDOM"), int)
POSIX_FADV_NOREUSE: int = to(getAttr(pyImport("os"), "POSIX_FADV_NOREUSE"), int)
POSIX_FADV_WILLNEED: int = to(getAttr(pyImport("os"), "POSIX_FADV_WILLNEED"),
                              int)
POSIX_FADV_DONTNEED: int = to(getAttr(pyImport("os"), "POSIX_FADV_DONTNEED"),
                              int)
RWF_NOWAIT: int = to(getAttr(pyImport("os"), "RWF_NOWAIT"), int)
RWF_HIPRI: int = to(getAttr(pyImport("os"), "RWF_HIPRI"), int)
RWF_DSYNC: int = to(getAttr(pyImport("os"), "RWF_DSYNC"), int)
RWF_SYNC: int = to(getAttr(pyImport("os"), "RWF_SYNC"), int)
RWF_APPEND: int = to(getAttr(pyImport("os"), "RWF_APPEND"), int)
SPLICE_F_MOVE: int = to(getAttr(pyImport("os"), "SPLICE_F_MOVE"), int)
SPLICE_F_NONBLOCK: int = to(getAttr(pyImport("os"), "SPLICE_F_NONBLOCK"), int)
SPLICE_F_MORE: int = to(getAttr(pyImport("os"), "SPLICE_F_MORE"), int)
F_OK: int = to(getAttr(pyImport("os"), "F_OK"), int)
R_OK: int = to(getAttr(pyImport("os"), "R_OK"), int)
W_OK: int = to(getAttr(pyImport("os"), "W_OK"), int)
X_OK: int = to(getAttr(pyImport("os"), "X_OK"), int)
MFD_CLOEXEC: int = to(getAttr(pyImport("os"), "MFD_CLOEXEC"), int)
MFD_ALLOW_SEALING: int = to(getAttr(pyImport("os"), "MFD_ALLOW_SEALING"), int)
MFD_HUGETLB: int = to(getAttr(pyImport("os"), "MFD_HUGETLB"), int)
MFD_HUGE_SHIFT: int = to(getAttr(pyImport("os"), "MFD_HUGE_SHIFT"), int)
MFD_HUGE_MASK: int = to(getAttr(pyImport("os"), "MFD_HUGE_MASK"), int)
MFD_HUGE_64KB: int = to(getAttr(pyImport("os"), "MFD_HUGE_64KB"), int)
MFD_HUGE_512KB: int = to(getAttr(pyImport("os"), "MFD_HUGE_512KB"), int)
MFD_HUGE_1MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_1MB"), int)
MFD_HUGE_2MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_2MB"), int)
MFD_HUGE_8MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_8MB"), int)
MFD_HUGE_16MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_16MB"), int)
MFD_HUGE_32MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_32MB"), int)
MFD_HUGE_256MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_256MB"), int)
MFD_HUGE_512MB: int = to(getAttr(pyImport("os"), "MFD_HUGE_512MB"), int)
MFD_HUGE_1GB: int = to(getAttr(pyImport("os"), "MFD_HUGE_1GB"), int)
MFD_HUGE_2GB: int = to(getAttr(pyImport("os"), "MFD_HUGE_2GB"), int)
MFD_HUGE_16GB: int = to(getAttr(pyImport("os"), "MFD_HUGE_16GB"), int)
EFD_CLOEXEC: int = to(getAttr(pyImport("os"), "EFD_CLOEXEC"), int)
EFD_NONBLOCK: int = to(getAttr(pyImport("os"), "EFD_NONBLOCK"), int)
EFD_SEMAPHORE: int = to(getAttr(pyImport("os"), "EFD_SEMAPHORE"), int)
XATTR_SIZE_MAX: int = to(getAttr(pyImport("os"), "XATTR_SIZE_MAX"), int)
XATTR_CREATE: int = to(getAttr(pyImport("os"), "XATTR_CREATE"), int)
XATTR_REPLACE: int = to(getAttr(pyImport("os"), "XATTR_REPLACE"), int)
EX_OK: int = to(getAttr(pyImport("os"), "EX_OK"), int)
EX_USAGE: int = to(getAttr(pyImport("os"), "EX_USAGE"), int)
EX_DATAERR: int = to(getAttr(pyImport("os"), "EX_DATAERR"), int)
EX_NOINPUT: int = to(getAttr(pyImport("os"), "EX_NOINPUT"), int)
EX_NOUSER: int = to(getAttr(pyImport("os"), "EX_NOUSER"), int)
EX_NOHOST: int = to(getAttr(pyImport("os"), "EX_NOHOST"), int)
EX_UNAVAILABLE: int = to(getAttr(pyImport("os"), "EX_UNAVAILABLE"), int)
EX_SOFTWARE: int = to(getAttr(pyImport("os"), "EX_SOFTWARE"), int)
EX_OSERR: int = to(getAttr(pyImport("os"), "EX_OSERR"), int)
EX_OSFILE: int = to(getAttr(pyImport("os"), "EX_OSFILE"), int)
EX_CANTCREAT: int = to(getAttr(pyImport("os"), "EX_CANTCREAT"), int)
EX_IOERR: int = to(getAttr(pyImport("os"), "EX_IOERR"), int)
EX_TEMPFAIL: int = to(getAttr(pyImport("os"), "EX_TEMPFAIL"), int)
EX_PROTOCOL: int = to(getAttr(pyImport("os"), "EX_PROTOCOL"), int)
EX_NOPERM: int = to(getAttr(pyImport("os"), "EX_NOPERM"), int)
EX_CONFIG: int = to(getAttr(pyImport("os"), "EX_CONFIG"), int)
EX_NOTFOUND: int = to(getAttr(pyImport("os"), "EX_NOTFOUND"), int)
POSIX_SPAWN_OPEN: int = to(getAttr(pyImport("os"), "POSIX_SPAWN_OPEN"), int)
POSIX_SPAWN_CLOSE: int = to(getAttr(pyImport("os"), "POSIX_SPAWN_CLOSE"), int)
POSIX_SPAWN_DUP2: int = to(getAttr(pyImport("os"), "POSIX_SPAWN_DUP2"), int)
P_NOWAIT: int = to(getAttr(pyImport("os"), "P_NOWAIT"), int)
P_NOWAITO: int = to(getAttr(pyImport("os"), "P_NOWAITO"), int)
P_WAIT: int = to(getAttr(pyImport("os"), "P_WAIT"), int)
P_DETACH: int = to(getAttr(pyImport("os"), "P_DETACH"), int)
P_OVERLAY: int = to(getAttr(pyImport("os"), "P_OVERLAY"), int)
P_PID: int = to(getAttr(pyImport("os"), "P_PID"), int)
P_PGID: int = to(getAttr(pyImport("os"), "P_PGID"), int)
P_ALL: int = to(getAttr(pyImport("os"), "P_ALL"), int)
P_PIDFD: int = to(getAttr(pyImport("os"), "P_PIDFD"), int)
WEXITED: int = to(getAttr(pyImport("os"), "WEXITED"), int)
WSTOPPED: int = to(getAttr(pyImport("os"), "WSTOPPED"), int)
WNOWAIT: int = to(getAttr(pyImport("os"), "WNOWAIT"), int)
CLD_EXITED: int = to(getAttr(pyImport("os"), "CLD_EXITED"), int)
CLD_KILLED: int = to(getAttr(pyImport("os"), "CLD_KILLED"), int)
CLD_DUMPED: int = to(getAttr(pyImport("os"), "CLD_DUMPED"), int)
CLD_TRAPPED: int = to(getAttr(pyImport("os"), "CLD_TRAPPED"), int)
CLD_STOPPED: int = to(getAttr(pyImport("os"), "CLD_STOPPED"), int)
CLD_CONTINUED: int = to(getAttr(pyImport("os"), "CLD_CONTINUED"), int)
WNOHANG: int = to(getAttr(pyImport("os"), "WNOHANG"), int)
WCONTINUED: int = to(getAttr(pyImport("os"), "WCONTINUED"), int)
WUNTRACED: int = to(getAttr(pyImport("os"), "WUNTRACED"), int)
SCHED_OTHER: int = to(getAttr(pyImport("os"), "SCHED_OTHER"), int)
SCHED_BATCH: int = to(getAttr(pyImport("os"), "SCHED_BATCH"), int)
SCHED_IDLE: int = to(getAttr(pyImport("os"), "SCHED_IDLE"), int)
SCHED_SPORADIC: int = to(getAttr(pyImport("os"), "SCHED_SPORADIC"), int)
SCHED_FIFO: int = to(getAttr(pyImport("os"), "SCHED_FIFO"), int)
SCHED_RR: int = to(getAttr(pyImport("os"), "SCHED_RR"), int)
SCHED_RESET_ON_FORK: int = to(getAttr(pyImport("os"), "SCHED_RESET_ON_FORK"),
                              int)
RTLD_LAZY: int = to(getAttr(pyImport("os"), "RTLD_LAZY"), int)
RTLD_NOW: int = to(getAttr(pyImport("os"), "RTLD_NOW"), int)
RTLD_GLOBAL: int = to(getAttr(pyImport("os"), "RTLD_GLOBAL"), int)
RTLD_LOCAL: int = to(getAttr(pyImport("os"), "RTLD_LOCAL"), int)
RTLD_NODELETE: int = to(getAttr(pyImport("os"), "RTLD_NODELETE"), int)
RTLD_NOLOAD: int = to(getAttr(pyImport("os"), "RTLD_NOLOAD"), int)
RTLD_DEEPBIND: int = to(getAttr(pyImport("os"), "RTLD_DEEPBIND"), int)
GRND_NONBLOCK: int = to(getAttr(pyImport("os"), "GRND_NONBLOCK"), int)
GRND_RANDOM: int = to(getAttr(pyImport("os"), "GRND_RANDOM"), int)

Procs

proc getcwd(): string {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc getpgid(pid: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc chdir(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc fspath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_exec_path(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc ctermid(): string {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc getegid(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc geteuid(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc getgid(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc getgroups(): seq[int] {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc getlogin(): string {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc getpgrp(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc getpid(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc getenv(key: string; default = ""): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getenvb(key: string; default = ""): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getgrouplist(user: string; group: int): seq[int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getppid(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc getpriority(which: string; who: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getresuid(): tuple[ruid: int, euid: int, suid: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getresgid(): tuple[rgid: int, egid: int, sgid: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getuid(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc initgroups(username: string; gid: int): seq[int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc putenv(key, value: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setegid(egid: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc seteuid(euid: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc setgid(gid: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc setgroups(groups: seq[int]) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setpgrp() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc setpgid(pid, pgrp: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc setpriority(which, who: int; priority: -20 .. 19 = 0) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setregid(rgid, egid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setresgid(rgid, egid, sgid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setresuid(ruid, euid, suid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setreuid(ruid, euid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getsid(pid: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc setsid() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc setuid(uid: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc strerror(errorCode: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc umask(mask: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc uname(): tuple[sysname, nodename, release, version, machine: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unsetenv(key: string) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc close(fileDescriptor: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc closerange(fromFileDescriptor, toFileDescriptor: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copy_file_range(src, dst, count: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc device_encoding(fd: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc fchmod(fd, mode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc fchown(fd, uid, gid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc fdatasync(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc fsync(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc ftruncate(fd, len: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc get_blocking(fd: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc isatty(fd: int): bool {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc lseek(fd, pos, how: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc openpty(): tuple[master, slave: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pipe(): tuple[read, write: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pipe2(flags: int): tuple[read, write: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc posix_fallocate(fd, offset, len: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc posix_fadvise(fd, offset, len, advice: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pread(fd, n, offset: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pwrite(fd: int; str: string; offset: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc read(fd, n: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sendfile(out_fd, in_fd, offset, count: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc splice(src, dst, count: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc tcgetpgrp(fd: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc tcsetpgrp(fd, pg: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc ttyname(fd: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc write(fd: int; str: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_terminal_size(fd: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_inheritable(fd: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_inheritable(fd: int; inheritable: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc access(path: string; mode: int): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc access(path: string; mode: int; effective_ids, follow_symlinks: bool): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chflags(path: string; flags: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chflags(path: string; flags: int; follow_symlinks: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chmod(path: string; mode: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc chmod(path: string; mode: int; follow_symlinks: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chown(path: string; uid, gid: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chown(path: string; uid, gid: int; follow_symlinks: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chroot(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc fchdir(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc getcwdb(): string {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc lchflags(path: string; flags: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lchmod(path: string; mode: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc lchown(path: string; uid, gid: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc link(src, dst: string) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc link(src, dst: string; follow_symlinks: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc listdir(path = "."): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mkdir(path: string; mode = 511) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc makedirs(name: string; mode = 511; exist_ok = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mkfifo(path: string; mode = 438) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mknod(path: string; mode = 384; device = 0) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc major(device: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc minor(device: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc makedev(major, minor: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc readlink(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc remove(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc removedirs(path: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc rename(src, dst: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc renames(olds, news: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc replace(src, dst: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc rmdir(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc symlink(src, dst: string; target_is_directory = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sync() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc truncate(path: string; len: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc unlink(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc utime(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc memfd_create(path: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc eventfd(initval: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc eventfd_write(fd: int; value: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc eventfd_read(fd: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getxattr(path, attribute: string; follow_symlinks = true): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc listxattr(path: string; follow_symlinks = true): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc removexattr(path, attribute: string; follow_symlinks = true) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setxattr(path, attribute, value: string; flags = 0; follow_symlinks = true) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc abort() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc add_dll_directory(path: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc fork(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect].}
proc forkpty(): tuple[pid, fd: int] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc kill(pid, sig: int) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc killpg(pgid, sig: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc nice(increment: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pidfd_open(pid: int; flags = 0): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc startfile(path, operation, arguments, cwd: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc startfile(path: string) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc system(command: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc times(): tuple[user, system, children_user, children_system, elapsed: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc wait(): tuple[pid, exitCode: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc waitpid(pid, options: int): tuple[pid, exitCode: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc waitstatus_to_exitcode(status: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc WCOREDUMP(status: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WIFCONTINUED(status: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WIFSTOPPED(status: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WIFSIGNALED(status: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WIFEXITED(status: int): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WEXITSTATUS(status: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WSTOPSIG(status: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc WTERMSIG(status: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sched_get_priority_min(policy: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sched_get_priority_max(policy: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sched_getscheduler(pid: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sched_rr_get_interval(pid: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sched_yield() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc sched_setaffinity(pid: int; mask: seq[int]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc confstr(name: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc cpu_count(): int {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc getloadavg(): array[3, float] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc sysconf(name: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getrandom(size: int; flags = 0): seq[byte] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc urandom(size: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc abspath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc basename(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc commonpath(paths: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc commonprefix(paths: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc dirname(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc exists(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc lexists(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc expanduser(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc expandvars(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getatime(path: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getmtime(path: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getctime(path: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getsize(path: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc isabs(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc isfile(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc isdir(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc islink(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc ismount(path: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc samefile(path1, path2: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sameopenfile(path1, path2: int): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc normcase(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc normpath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc realpath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc relpath(path: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc split(path: string): tuple[head, tail: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc splitdrive(path: string): tuple[drive, tail: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc splitext(path: string): tuple[root, ext: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/pickle.html ================================================ src/cpython/pickle

src/cpython/pickle

Lets

HIGHEST_PROTOCOL: int = to(getAttr(pyImport("pickle"), "HIGHEST_PROTOCOL"), int)
DEFAULT_PROTOCOL: int = to(getAttr(pyImport("pickle"), "DEFAULT_PROTOCOL"), int)

Procs

proc dumps(obj: auto): string
proc loads(bytes_object: string; output_type: typedesc): auto
================================================ FILE: docs/pickletools.html ================================================ src/cpython/pickletools

src/cpython/pickletools

    Dark Mode
Search:
Group by:

Procs

proc optimize(picklestring: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/pkgutil.html ================================================ src/cpython/pkgutil

src/cpython/pkgutil

    Dark Mode
Search:
Group by:

Procs

proc extend_path(path, name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/posixpath.html ================================================ src/cpython/posixpath

src/cpython/posixpath

Procs

proc abspath(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc basename(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc commonprefix(s: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc dirname(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc exists(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc expanduser(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc expandvars(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getatime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getctime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getmtime(s: string): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc getsize(s: string): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isabs(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isdir(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc isfile(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc islink(s: string): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect,
    ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc ismount(s: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc join(a, b: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc lexists(s: string): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc normcase(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc normpath(s: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect, ReadDirEffect,
    ReadEnvEffect, ReadIOEffect].}
proc relpath(path, start: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc samefile(path1, path2: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc split(s: string): tuple[head, tail: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
proc splitdrive(s: string): tuple[drive, path: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect, ReadDirEffect, ReadEnvEffect, ReadIOEffect].}
================================================ FILE: docs/pprint.html ================================================ src/cpython/pprint

src/cpython/pprint

Procs

proc pprint(obj: auto)
proc isreadable(obj: auto): bool
proc isrecursive(obj: auto): bool
proc saferepr(obj: auto): string
proc pformat(obj: auto; indent = 1; width = 80; depth = int.high): string
================================================ FILE: docs/pwd.html ================================================ src/cpython/pwd

src/cpython/pwd

Procs

proc getpwuid(uid: int): tuple[pw_name, pw_passwd: string, pw_uid, pw_gid: int,
                               pw_gecos, pw_dir, pw_shell: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getpwnam(name: string): tuple[pw_name, pw_passwd: string,
                                   pw_uid, pw_gid: int,
                                   pw_gecos, pw_dir, pw_shell: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getpwall(): seq[tuple[pw_name, pw_passwd: string, pw_uid, pw_gid: int,
                           pw_gecos, pw_dir, pw_shell: string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/py_compile.html ================================================ src/cpython/py_compile

src/cpython/py_compile

Procs

proc compile(file, cfile, dfile: string; doraise = false; optimize = -1): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile(file, cfile: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compile(file: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/quopri.html ================================================ src/cpython/quopri

src/cpython/quopri

Procs

proc decodestring(s: string; header = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc encodestring(s: string; quotetabs = false; header = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/random.html ================================================ src/cpython/random

src/cpython/random

    Dark Mode
Search:
Group by:

Procs

proc seed() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc seed(a: int; version = 2) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc randbytes(n: int): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc randrange(stop: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc randrange(start, stop: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc randrange(start, stop, step: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc randint(a, b: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc getrandbits(k: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc choice(sequence: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc choice(sequence: seq[char]): char {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[bool]): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sample(sequence: seq[int]; length: int): seq[int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sample(sequence: seq[char]; length: int): seq[char] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sample(sequence: seq[bool]; length: int): seq[bool] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sample(sequence: seq[float]; length: int): seq[float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sample(sequence: seq[string]; length: int): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc random(): float {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc uniform(a, b: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc uniform(a, b: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc triangular(lo, hi, mode: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc triangular(lo, hi, mode: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc betavariate(alpha, beta: float): range[0.0 .. 1.0] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc betavariate(alpha, beta: int): range[0.0 .. 1.0] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc expovariate(lambd: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc expovariate(lambd: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc gammavariate(alpha, beta: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc gammavariate(alpha, beta: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc gauss(mu, sigma: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc gauss(mu, sigma: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc lognormvariate(mu, sigma: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc lognormvariate(mu, sigma: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc normalvariate(mu, sigma: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc normalvariate(mu, sigma: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc vonmisesvariate(mu, kappa: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc vonmisesvariate(mu, kappa: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc paretovariate(alpha: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc paretovariate(alpha: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc weibullvariate(alpha: float): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc weibullvariate(alpha: int): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/re.html ================================================ src/cpython/re

src/cpython/re

Procs

proc split(pattern, str: string; maxsplit = 0; flags = 0): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc findall(pattern, str: string; flags = 0): seq[string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc sub(pattern, repl, str: string; count = 0; flags = 0): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc subn(pattern, replacement: string; count = 0; flags = 0): tuple[
    new_string: string, number_of_subs_made: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc escape(pattern: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc purge() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
================================================ FILE: docs/readline.html ================================================ src/cpython/readline

src/cpython/readline

Procs

proc redisplay() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                            KeyError], tags: [RootEffect].}
proc get_line_buffer(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc parse_and_bind(str: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc read_init_file(filename: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc insert_text(str: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc read_history_file(filename: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc write_history_file(filename: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_history_length(): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_history_length(length: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc clear_history() {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc get_current_history_length(): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_history_item(index: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc remove_history_item(pos: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc replace_history_item(pos: int; line: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc add_history(line: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_auto_history(enabled: bool) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_startup_hook(function: auto)
proc set_pre_input_hook(function: auto)
proc set_completer(function: auto)
proc get_completion_type(): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_begidx(): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc get_endidx(): int {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc set_completer_delims(str: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_completer_delims(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc append_history_file(nelements: seq[string]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc set_completion_display_matches_hook(function: auto)
proc append_history_file(nelements: seq[string]; filename: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/reprlib.html ================================================ src/cpython/reprlib

src/cpython/reprlib

    Dark Mode
Search:
Group by:
================================================ FILE: docs/resource.html ================================================ src/cpython/resource

src/cpython/resource

Lets

RLIM_INFINITY: int = to(getAttr(pyImport("resource"), "RLIM_INFINITY"), int)
RLIMIT_CORE: int = to(getAttr(pyImport("resource"), "RLIMIT_CORE"), int)
RLIMIT_CPU: int = to(getAttr(pyImport("resource"), "RLIMIT_CPU"), int)
RLIMIT_FSIZE: int = to(getAttr(pyImport("resource"), "RLIMIT_FSIZE"), int)
RLIMIT_DATA: int = to(getAttr(pyImport("resource"), "RLIMIT_DATA"), int)
RLIMIT_STACK: int = to(getAttr(pyImport("resource"), "RLIMIT_STACK"), int)
RLIMIT_RSS: int = to(getAttr(pyImport("resource"), "RLIMIT_RSS"), int)
RLIMIT_NPROC: int = to(getAttr(pyImport("resource"), "RLIMIT_NPROC"), int)
RLIMIT_NOFILE: int = to(getAttr(pyImport("resource"), "RLIMIT_NOFILE"), int)
RLIMIT_OFILE: int = to(getAttr(pyImport("resource"), "RLIMIT_OFILE"), int)
RLIMIT_MEMLOCK: int = to(getAttr(pyImport("resource"), "RLIMIT_MEMLOCK"), int)
RLIMIT_VMEM: int = to(getAttr(pyImport("resource"), "RLIMIT_VMEM"), int)
RLIMIT_AS: int = to(getAttr(pyImport("resource"), "RLIMIT_AS"), int)
RLIMIT_MSGQUEUE: int = to(getAttr(pyImport("resource"), "RLIMIT_MSGQUEUE"), int)
RLIMIT_NICE: int = to(getAttr(pyImport("resource"), "RLIMIT_NICE"), int)
RLIMIT_RTPRIO: int = to(getAttr(pyImport("resource"), "RLIMIT_RTPRIO"), int)
RLIMIT_RTTIME: int = to(getAttr(pyImport("resource"), "RLIMIT_RTTIME"), int)
RLIMIT_SIGPENDING: int = to(getAttr(pyImport("resource"), "RLIMIT_SIGPENDING"),
                            int)
RLIMIT_SBSIZE: int = to(getAttr(pyImport("resource"), "RLIMIT_SBSIZE"), int)
RLIMIT_SWAP: int = to(getAttr(pyImport("resource"), "RLIMIT_SWAP"), int)
RLIMIT_NPTS: int = to(getAttr(pyImport("resource"), "RLIMIT_NPTS"), int)
RLIMIT_KQUEUES: int = to(getAttr(pyImport("resource"), "RLIMIT_KQUEUES"), int)
RUSAGE_SELF: int = to(getAttr(pyImport("resource"), "RUSAGE_SELF"), int)
RUSAGE_CHILDREN: int = to(getAttr(pyImport("resource"), "RUSAGE_CHILDREN"), int)
RUSAGE_BOTH: int = to(getAttr(pyImport("resource"), "RUSAGE_BOTH"), int)
RUSAGE_THREAD: int = to(getAttr(pyImport("resource"), "RUSAGE_THREAD"), int)

Procs

proc getpagesize(): int {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc prlimit(pid: int; resource: auto; limits: tuple[soft, hard: int])
proc prlimit(pid: int; resource: auto)
proc getrlimit(resource: auto): tuple[soft, hard: int]
proc setrlimit(resource: auto; limits: tuple[soft, hard: int])
proc getrusage(who: int): tuple[ru_utime, ru_stime: float, ru_maxrss, ru_ixrss,
    ru_idrss, ru_isrss, ru_minflt, ru_majflt, ru_nswap, ru_inblock, ru_oublock,
    ru_msgsnd, ru_msgrcv, ru_nsignals, ru_nvcsw, ru_nivcsw: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/runpy.html ================================================ src/cpython/runpy

src/cpython/runpy

    Dark Mode
Search:
Group by:

Procs

proc run_module(module_name: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc run_path(module_name: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/secrets.html ================================================ src/cpython/secrets

src/cpython/secrets

Procs

proc randbelow(n: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc randbits(k: int): int {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc choice(sequence: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc choice(sequence: seq[char]): char {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[bool]): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc choice(sequence: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc token_bytes(number_of_bytes: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc token_bytes(): string {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc token_hex(number_of_bytes: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc token_hex(): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc token_urlsafe(number_of_bytes: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc token_urlsafe(): string {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc compare_digest(digestA, digestB: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/shutil.html ================================================ src/cpython/shutil

src/cpython/shutil

Procs

proc copyfile(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copymode(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copystat(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copy(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copy2(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc move(source, destination: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc chown(path: string; uid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc chown(path: string; username: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc rmtree(path: string; ignore_errors = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc copytree(source, destination: string; symlinks = false): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc disk_usage(path: string): tuple[total, used, free: BiggestUInt] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc which(cmd: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc make_archive(base_name, formats: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc make_archive(base_name, formats, root_dir: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc make_archive(base_name, formats, root_dir, base_dir: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc make_archive(base_name, formats, root_dir, base_dir: string;
                  verbose, dry_run: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_archive_formats(): seq[tuple[name, description: string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unregister_archive_format(name: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unpack_archive(filename, extract_dir, format: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unpack_archive(filename, extract_dir: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unpack_archive(filename: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc unregister_unpack_format(name: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_unpack_formats(): seq[tuple[name: string, extensions: seq[string],
                                     description: string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_terminal_size(fallback: array[2, int] = [80, 24]): tuple[
    columns, lines: int] {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/signal.html ================================================ src/cpython/signal

src/cpython/signal

Lets

NSIG: int = to(getAttr(pyImport("signal"), "NSIG"), int)
ITIMER_REAL: int = to(getAttr(pyImport("signal"), "ITIMER_REAL"), int)
ITIMER_VIRTUAL: int = to(getAttr(pyImport("signal"), "ITIMER_VIRTUAL"), int)
ITIMER_PROF: int = to(getAttr(pyImport("signal"), "ITIMER_PROF"), int)

Procs

proc alarm(time: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc strsignal(signalnum: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pause() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc raise_signal(signum: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pidfd_send_signal(pidfd, sig: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pthread_kill(thread_id, signalnum: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pthread_sigmask(how, mask: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_wakeup_fd(fd: int): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getitimer(which: auto)
proc siginterrupt(signalnum: int; flag: bool) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setitimer(which: auto; seconds: int or float; interval: int or float = 0.0)
================================================ FILE: docs/site.html ================================================ src/cpython/site

src/cpython/site

Lets

PREFIXES: seq[string] = to(getAttr(pyImport("site"), "PREFIXES"), seq[string])
ENABLE_USER_SITE: bool = to(getAttr(pyImport("site"), "ENABLE_USER_SITE"), bool)
USER_SITE: string = to(getAttr(pyImport("site"), "USER_SITE"), string)
USER_BASE: string = to(getAttr(pyImport("site"), "USER_BASE"), string)

Procs

proc main() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc addsitedir(sitedir: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc addsitedir(sitedir: string; known_paths: seq[string]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getsitepackages(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getuserbase(): string {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc getusersitepackages(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/sndhdr.html ================================================ src/cpython/sndhdr

src/cpython/sndhdr

Procs

proc what(filename: string): tuple[filetype: string, framerate, nchannels,
    nframes, sampwidth: int] {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc whathdr(filename: string): tuple[filetype: string, framerate, nchannels,
    nframes, sampwidth: int] {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/spwd.html ================================================ src/cpython/spwd

src/cpython/spwd

Procs

proc getspnam(name: string): tuple[sp_namp, sp_pwdp: string, sp_lstchg, sp_min,
    sp_max, sp_warn, sp_inact, sp_expire, sp_flag: int] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getspall(): seq[tuple[sp_namp, sp_pwdp: string, sp_lstchg, sp_min, sp_max,
    sp_warn, sp_inact, sp_expire, sp_flag: int]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/ssl.html ================================================ src/cpython/ssl

src/cpython/ssl

Lets

OPENSSL_VERSION: string = to(getAttr(pyImport("ssl"), "OPENSSL_VERSION"), string)
OPENSSL_VERSION_NUMBER: int = to(getAttr(pyImport("ssl"),
    "OPENSSL_VERSION_NUMBER"), int)
SSL_ERROR_EOF: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_EOF"), int)
SSL_ERROR_INVALID_ERROR_CODE: int = to(getAttr(pyImport("ssl"),
    "SSL_ERROR_INVALID_ERROR_CODE"), int)
SSL_ERROR_SSL: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_SSL"), int)
SSL_ERROR_SYSCALL: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_SYSCALL"), int)
SSL_ERROR_WANT_CONNECT: int = to(getAttr(pyImport("ssl"),
    "SSL_ERROR_WANT_CONNECT"), int)
SSL_ERROR_WANT_READ: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_WANT_READ"),
                              int)
SSL_ERROR_WANT_WRITE: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_WANT_WRITE"),
                               int)
SSL_ERROR_WANT_X509_LOOKUP: int = to(getAttr(pyImport("ssl"),
    "SSL_ERROR_WANT_X509_LOOKUP"), int)
SSL_ERROR_ZERO_RETURN: int = to(getAttr(pyImport("ssl"), "SSL_ERROR_ZERO_RETURN"),
                                int)
================================================ FILE: docs/statistics.html ================================================ src/cpython/statistics

src/cpython/statistics

    Dark Mode
Search:
Group by:

Procs

proc median_low(data: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc median_low(data: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc median_high(data: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc median_high(data: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mode(sequence: seq[int]): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mode(sequence: seq[char]): char {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mode(sequence: seq[bool]): bool {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc mode(sequence: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mode(sequence: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc multimode(sequence: seq[int]): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc multimode(sequence: seq[char]): char {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc multimode(sequence: seq[bool]): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc multimode(sequence: seq[float]): float {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc multimode(sequence: seq[string]): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mean(data: seq[int] or seq[float]): float
proc fmean(data: seq[int] or seq[float]): float
proc median(data: seq[int] or seq[float]): float
proc pstdev(data: seq[int] or seq[float]): float
proc pvariance(data: seq[int] or seq[float]): float
proc stdev(data: seq[int] or seq[float]): float
proc variance(data: seq[int] or seq[float]): float
proc quantiles(data: seq[int] or seq[float]): float
proc covariance(data: seq[int] or seq[float]): float
proc correlation(data: seq[int] or seq[float]): float
proc geometric_mean(data: seq[int] or seq[float]): float
proc harmonic_mean(data: seq[int] or seq[float]): float
proc linear_regression(data: seq[int] or seq[float]): tuple[
    slope, intercept: float]
proc median_grouped(data: seq[int] or seq[float]; interval = 1): float
proc harmonic_mean(data: seq[int] or seq[float]; weights: seq[int]): float
================================================ FILE: docs/struct.html ================================================ src/cpython/struct

src/cpython/struct

Procs

proc calcsize(format: string): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc unpack(format, buffer: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc unpack_from(format, buffer: string; offset = 0) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/subprocess.html ================================================ src/cpython/subprocess

src/cpython/subprocess

Lets

DEVNULL: int = to(getAttr(pyImport("subprocess"), "DEVNULL"), int)
PIPE: int = to(getAttr(pyImport("subprocess"), "PIPE"), int)
STDOUT: int = to(getAttr(pyImport("subprocess"), "STDOUT"), int)

Procs

proc run(args: seq[string] or string): tuple[args: seq[string], returncode: int,
    stdout: string, stderr: string]
================================================ FILE: docs/sys.html ================================================ src/cpython/sys

src/cpython/sys

Lets

abiflags: string = to(getAttr(pyImport("math"), "abiflags"), string)
base_exec_prefix: string = to(getAttr(pyImport("math"), "base_exec_prefix"),
                              string)
base_prefix: string = to(getAttr(pyImport("math"), "base_prefix"), string)
byteorder: string = to(getAttr(pyImport("math"), "byteorder"), string)
copyright: string = to(getAttr(pyImport("math"), "copyright"), string)
pycache_prefix: string = to(getAttr(pyImport("math"), "pycache_prefix"), string)
exec_prefix: string = to(getAttr(pyImport("math"), "exec_prefix"), string)
executable: string = to(getAttr(pyImport("math"), "executable"), string)
float_repr_style: string = to(getAttr(pyImport("math"), "float_repr_style"),
                              string)
platform: string = to(getAttr(pyImport("math"), "platform"), string)
platlibdir: string = to(getAttr(pyImport("math"), "platlibdir"), string)
prefix: string = to(getAttr(pyImport("math"), "prefix"), string)
ps1: string = to(getAttr(pyImport("math"), "ps1"), string)
ps2: string = to(getAttr(pyImport("math"), "ps2"), string)
version: string = to(getAttr(pyImport("math"), "version"), string)
winver: string = to(getAttr(pyImport("math"), "winver"), string)
dllhandle: int = to(getAttr(pyImport("math"), "dllhandle"), int)
hexversion: int = to(getAttr(pyImport("math"), "hexversion"), int)
maxunicode: int = to(getAttr(pyImport("math"), "maxunicode"), int)
tracebacklimit: int = to(getAttr(pyImport("math"), "tracebacklimit"), int)
api_version: int = to(getAttr(pyImport("math"), "api_version"), int)
maxsize: BiggestInt = to(getAttr(pyImport("math"), "maxsize"), BiggestInt)
dont_write_bytecode: bool = to(getAttr(pyImport("math"), "dont_write_bytecode"),
                               bool)
builtin_module_names: seq[string] = to(getAttr(pyImport("math"),
    "builtin_module_names"), seq[string])
argv: seq[string] = to(getAttr(pyImport("math"), "argv"), seq[string])
orig_argv: seq[string] = to(getAttr(pyImport("math"), "orig_argv"), seq[string])
path: seq[string] = to(getAttr(pyImport("math"), "path"), seq[string])
flags: tuple[debug, inspect, interactive, optimize, dont_write_bytecode,
             no_user_site, no_site, ignore_environment, verbose, bytes_warning,
             quiet, hash_randomization, isolated: int, dev_mode: bool,
             utf8_mode: int] = to(getAttr(pyImport("math"), "flags"), tuple[
    debug, inspect, interactive, optimize, dont_write_bytecode, no_user_site,
    no_site, ignore_environment, verbose, bytes_warning, quiet,
    hash_randomization, isolated: int, dev_mode: bool, utf8_mode: int])
float_info: tuple[max: float, max_exp, max_10_exp: int, min: float,
                  min_exp, min_10_exp, dig, mant_dig: int, epsilon: float,
                  radix, rounds: int] = to(
    getAttr(pyImport("math"), "float_info"), tuple[max: float,
    max_exp, max_10_exp: int, min: float,
    min_exp, min_10_exp, dig, mant_dig: int, epsilon: float, radix, rounds: int])
hash_info: tuple[width, modulus, inf, nan, imag: int, algorithm: string,
                 hash_bits, seed_bits, cutoff: int] = to(
    getAttr(pyImport("math"), "hash_info"), tuple[
    width, modulus, inf, nan, imag: int, algorithm: string,
    hash_bits, seed_bits, cutoff: int])
int_info: tuple[bits_per_digit, sizeof_digit: int] = to(
    getAttr(pyImport("math"), "int_info"),
    tuple[bits_per_digit, sizeof_digit: int])
thread_info: tuple[name, lock, version: string] = to(
    getAttr(pyImport("math"), "thread_info"), tuple[name, lock, version: string])
version_info: tuple[major, minor, micro: int, releaselevel: string, serial: int] = to(
    getAttr(pyImport("math"), "version_info"),
    tuple[major, minor, micro: int, releaselevel: string, serial: int])

Procs

proc breakpointhook() {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc displayhook(value: auto)
proc exit(arg = 0) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc getallocatedblocks(): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getandroidapilevel(): int {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getdefaultencoding(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getdlopenflags(): int {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc getfilesystemencoding(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc getfilesystemencodeerrors(): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getrefcount(obj: auto): int
proc getrecursionlimit(obj: auto): int
proc getsizeof(obj: auto): int
proc getsizeof(obj: auto; default: int): int
proc getswitchinterval(): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_coroutine_origin_tracking_depth(): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc intern(str: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc is_finalizing(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc setdlopenflags(n: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc setrecursionlimit(limit: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setswitchinterval(interval: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc set_coroutine_origin_tracking_depth(depth: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/sysconfig.html ================================================ src/cpython/sysconfig

src/cpython/sysconfig

Procs

proc get_config_var(value: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_scheme_names(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_default_scheme(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_preferred_scheme(key: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_path_names(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_path(name, scheme: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc get_path(name: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_python_version(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_platform(): string {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc is_python_build(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc get_config_h_filename(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_makefile_filename(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/syslog.html ================================================ src/cpython/syslog

src/cpython/syslog

Procs

proc closelog() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc openlog() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                          KeyError], tags: [RootEffect].}
proc syslog(message: string) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc syslog(priority, message: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc openlog(idents: string) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc openlog(idents: string; logoption: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc openlog(idents: string; logoption: int; facility: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/tabnanny.html ================================================ src/cpython/tabnanny

src/cpython/tabnanny

    Dark Mode
Search:
Group by:

Procs

proc check(file_or_dir: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/tempfile.html ================================================ src/cpython/tempfile

src/cpython/tempfile

Procs

proc mkdtemp(): string {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc mkdtemp(suffix, prefix: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mkdtemp(suffix, prefix, dir: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mktemp(): string {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc mktemp(suffix, prefix: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc mktemp(suffix, prefix, dir: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc gettempdir(): string {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc gettempdirb(): string {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc gettempprefix(): string {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc gettempprefixb(): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/termios.html ================================================ src/cpython/termios

src/cpython/termios

Procs

proc tcgetattr(fd: int): tuple[iflag, oflag, cflag, lflag, ispeed, ospeed: int,
                               cc: seq[string]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc tcsendbreak(fd, duration: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc tcdrain(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/textwrap.html ================================================ src/cpython/textwrap

src/cpython/textwrap

Procs

proc wrap(text: string; width = 70): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc fill(text: string; width = 70): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc dedent(text: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc indent(text, prefix: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc indent(text: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc shorten(text: string; width: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/timeit.html ================================================ src/cpython/timeit

src/cpython/timeit

    Dark Mode
Search:
Group by:

Procs

proc timeit(stmts = "pass"; setup = "pass") {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc repeat(stmts = "pass"; setup = "pass") {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/token.html ================================================ src/cpython/token

src/cpython/token

Lets

ENDMARKER: int = to(getAttr(pyImport("token"), "ENDMARKER"), int)
NAME: int = to(getAttr(pyImport("token"), "NAME"), int)
NUMBER: int = to(getAttr(pyImport("token"), "NUMBER"), int)
STRING: int = to(getAttr(pyImport("token"), "STRING"), int)
NEWLINE: int = to(getAttr(pyImport("token"), "NEWLINE"), int)
INDENT: int = to(getAttr(pyImport("token"), "INDENT"), int)
DEDENT: int = to(getAttr(pyImport("token"), "DEDENT"), int)
LPAR: int = to(getAttr(pyImport("token"), "LPAR"), int)
RPAR: int = to(getAttr(pyImport("token"), "RPAR"), int)
LSQB: int = to(getAttr(pyImport("token"), "LSQB"), int)
RSQB: int = to(getAttr(pyImport("token"), "RSQB"), int)
COLON: int = to(getAttr(pyImport("token"), "COLON"), int)
COMMA: int = to(getAttr(pyImport("token"), "COMMA"), int)
SEMI: int = to(getAttr(pyImport("token"), "SEMI"), int)
PLUS: int = to(getAttr(pyImport("token"), "PLUS"), int)
MINUS: int = to(getAttr(pyImport("token"), "MINUS"), int)
STAR: int = to(getAttr(pyImport("token"), "STAR"), int)
SLASH: int = to(getAttr(pyImport("token"), "SLASH"), int)
VBAR: int = to(getAttr(pyImport("token"), "VBAR"), int)
AMPER: int = to(getAttr(pyImport("token"), "AMPER"), int)
LESS: int = to(getAttr(pyImport("token"), "LESS"), int)
GREATER: int = to(getAttr(pyImport("token"), "GREATER"), int)
EQUAL: int = to(getAttr(pyImport("token"), "EQUAL"), int)
DOT: int = to(getAttr(pyImport("token"), "DOT"), int)
PERCENT: int = to(getAttr(pyImport("token"), "PERCENT"), int)
LBRACE: int = to(getAttr(pyImport("token"), "LBRACE"), int)
RBRACE: int = to(getAttr(pyImport("token"), "RBRACE"), int)
EQEQUAL: int = to(getAttr(pyImport("token"), "EQEQUAL"), int)
NOTEQUAL: int = to(getAttr(pyImport("token"), "NOTEQUAL"), int)
LESSEQUAL: int = to(getAttr(pyImport("token"), "LESSEQUAL"), int)
GREATEREQUAL: int = to(getAttr(pyImport("token"), "GREATEREQUAL"), int)
TILDE: int = to(getAttr(pyImport("token"), "TILDE"), int)
CIRCUMFLEX: int = to(getAttr(pyImport("token"), "CIRCUMFLEX"), int)
LEFTSHIFT: int = to(getAttr(pyImport("token"), "LEFTSHIFT"), int)
RIGHTSHIFT: int = to(getAttr(pyImport("token"), "RIGHTSHIFT"), int)
DOUBLESTAR: int = to(getAttr(pyImport("token"), "DOUBLESTAR"), int)
PLUSEQUAL: int = to(getAttr(pyImport("token"), "PLUSEQUAL"), int)
MINEQUAL: int = to(getAttr(pyImport("token"), "MINEQUAL"), int)
STAREQUAL: int = to(getAttr(pyImport("token"), "STAREQUAL"), int)
SLASHEQUAL: int = to(getAttr(pyImport("token"), "SLASHEQUAL"), int)
PERCENTEQUAL: int = to(getAttr(pyImport("token"), "PERCENTEQUAL"), int)
AMPEREQUAL: int = to(getAttr(pyImport("token"), "AMPEREQUAL"), int)
VBAREQUAL: int = to(getAttr(pyImport("token"), "VBAREQUAL"), int)
CIRCUMFLEXEQUAL: int = to(getAttr(pyImport("token"), "CIRCUMFLEXEQUAL"), int)
LEFTSHIFTEQUAL: int = to(getAttr(pyImport("token"), "LEFTSHIFTEQUAL"), int)
RIGHTSHIFTEQUAL: int = to(getAttr(pyImport("token"), "RIGHTSHIFTEQUAL"), int)
DOUBLESTAREQUAL: int = to(getAttr(pyImport("token"), "DOUBLESTAREQUAL"), int)
DOUBLESLASH: int = to(getAttr(pyImport("token"), "DOUBLESLASH"), int)
DOUBLESLASHEQUAL: int = to(getAttr(pyImport("token"), "DOUBLESLASHEQUAL"), int)
AT: int = to(getAttr(pyImport("token"), "AT"), int)
ATEQUAL: int = to(getAttr(pyImport("token"), "ATEQUAL"), int)
RARROW: int = to(getAttr(pyImport("token"), "RARROW"), int)
ELLIPSIS: int = to(getAttr(pyImport("token"), "ELLIPSIS"), int)
COLONEQUAL: int = to(getAttr(pyImport("token"), "COLONEQUAL"), int)
OP: int = to(getAttr(pyImport("token"), "OP"), int)
AWAIT: int = to(getAttr(pyImport("token"), "AWAIT"), int)
ASYNC: int = to(getAttr(pyImport("token"), "ASYNC"), int)
TYPE_IGNORE: int = to(getAttr(pyImport("token"), "TYPE_IGNORE"), int)
TYPE_COMMENT: int = to(getAttr(pyImport("token"), "TYPE_COMMENT"), int)
SOFT_KEYWORD: int = to(getAttr(pyImport("token"), "SOFT_KEYWORD"), int)
ERRORTOKEN: int = to(getAttr(pyImport("token"), "ERRORTOKEN"), int)
N_TOKENS: int = to(getAttr(pyImport("token"), "N_TOKENS"), int)
NT_OFFSET: int = to(getAttr(pyImport("token"), "NT_OFFSET"), int)
COMMENT: int = to(getAttr(pyImport("token"), "COMMENT"), int)
NL: int = to(getAttr(pyImport("token"), "NL"), int)
ENCODING: int = to(getAttr(pyImport("token"), "ENCODING"), int)

Procs

proc ISTERMINAL(x: auto): bool
proc ISNONTERMINAL(x: auto): bool
proc ISEOF(x: auto): bool
================================================ FILE: docs/tty.html ================================================ src/cpython/tty

src/cpython/tty

    Dark Mode
Search:
Group by:

Procs

proc setraw(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc setcbreak(fd: int) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/turtle.html ================================================ src/cpython/turtle

src/cpython/turtle

    Dark Mode
Search:
Group by:

import cpython/turtle

title "Nim Turtle"
shape "turtle"
shapesize 2, 2, 8
color "green", "yellow"
speed "fast"
beginFill()

while true:
  forward 200
  left 170
  if position() < (1.0, 1.0):
    break

endFill()
mainLoop()

Procs

proc backward(distance: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc backward(distance: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc begin_fill() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc begin_poly() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc bgpic(): string {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc bgpic(picname: string) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc bye() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                      KeyError], tags: [RootEffect].}
proc circle(radius, extent, steps: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc circle(radius, extent, steps: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc circle(radius: float) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc circle(radius: int) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc clear() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc clearscreen(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc clearstamp(stampid: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc clearstamps() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc color(): tuple[penColor, fillColor: string] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc color(colour: string) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc color(colourA, colourB: (float, float, float)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc color(colourA, colourB: (int, int, int)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc color(colourA, colourB: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc color(red, green, blue: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc color(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc colormode(cmode: float) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc colormode(cmode: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc degrees(fullcircle = 360.0) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc delay(): float {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc delay(delai: float) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc delay(delai: int) {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc distance(x, y: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc distance(x, y: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc dot(size: int; color: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc end_fill() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc end_poly() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc exitonclick() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc fillcolor(): string {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc fillcolor(red, green, blue: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc fillcolor(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc filling(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc forward(distance: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc forward(distance: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc get_shapepoly(): seq[tuple[x, y: float]] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc getshapes(): seq[string] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc goto(x, y: float) {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc goto(x, y: int) {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc hideturtle() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc home() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc isdown(): bool {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc isvisible(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc left(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc left(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc mainloop() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                           KeyError], tags: [RootEffect].}
proc mode(): string {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc mode(modes: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc numinput(title, prompt: string; default, minval, maxval: float): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc numinput(title, prompt: string; default, minval, maxval: int): int {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pencolor(): string {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc pencolor(colour: (float, float, float)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pencolor(colour: (int, int, int)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pencolor(colour: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pencolor(red, green, blue: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc pencolor(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc pendown(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc pensize(): int {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc pensize(width: int) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc penup(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc position(): tuple[x, y: float] {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc radians(): float {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc register_shape(gif_file_path: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc register_shape(name: string; shape: seq[(float, float)]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc register_shape(name: string; shape: seq[(int, int)]) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc reset() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                        KeyError], tags: [RootEffect].}
proc resetscreen(): bool {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc resizemode(): string {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc resizemode(resizemod: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc right(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc right(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
                                  EOFError, KeyError], tags: [RootEffect].}
proc screensize(canvwidth, canvheight: float; bg: (float, float, float)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc screensize(canvwidth, canvheight: float; bg: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc screensize(canvwidth, canvheight: int; bg: (int, int, int)) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc screensize(canvwidth, canvheight: int; bg: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setheading(to_angle: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setheading(to_angle: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setposition(x, y: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setposition(x, y: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc settiltangle(angle: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setundobuffer() {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc setundobuffer(size: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc setup(width, height: float; startx, starty: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setup(width, height: int; startx, starty: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setworldcoordinates(llx, lly, urx, ury: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setworldcoordinates(llx, lly, urx, ury: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc setx(x: float) {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc setx(x: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc sety(y: float) {....raises: [Exception, ValueError, OSError, IOError,
                               EOFError, KeyError], tags: [RootEffect].}
proc sety(y: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc shape(): string {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc shape(name: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc shapesize(): tuple[stretch_wid, stretch_len, outline: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shapesize(stretch_wid, stretch_len, outline: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shapesize(stretch_wid, stretch_len, outline: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shapetransform(): tuple[t11, t12, t21, t22: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shapetransform(t11, t12, t21, t22: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shapetransform(t11, t12, t21, t22: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc shearfactor(): float {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc shearfactor(shear: float) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc shearfactor(shear: int) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc showturtle() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc speed(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc speed(sped: range[0 .. 10]) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc speed(sped: string) {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc stamp(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                             KeyError], tags: [RootEffect].}
proc textinput(title, prompt: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc tilt(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
                                   EOFError, KeyError], tags: [RootEffect].}
proc tilt(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
                                 EOFError, KeyError], tags: [RootEffect].}
proc tiltangle(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc tiltangle(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc title(titlestring: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc towards(x, y: float): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc towards(x, y: int): float {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc tracer(): float {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc tracer(n, delai: float) {....raises: [Exception, ValueError, OSError, IOError,
                                        EOFError, KeyError], tags: [RootEffect].}
proc tracer(n, delai: int) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc turtlesize(): tuple[stretch_wid, stretch_len, outline: float] {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc turtlesize(stretch_wid, stretch_len, outline: float) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc turtlesize(stretch_wid, stretch_len, outline: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc undo() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                       KeyError], tags: [RootEffect].}
proc update() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                         KeyError], tags: [RootEffect].}
proc window_height(): int {....raises: [Exception, ValueError, OSError, IOError,
                                     EOFError, KeyError], tags: [RootEffect].}
proc window_width(): int {....raises: [Exception, ValueError, OSError, IOError,
                                    EOFError, KeyError], tags: [RootEffect].}
proc write(arg: string; move = false; align = "left";
           font = ("Arial", 9, "normal")) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc write(arg: string; move: bool) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc write(arg: string; move: bool; align: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc write_docstringdict(filename = "turtle_docstringdict") {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc xcor(): float {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
proc ycor(): float {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
================================================ FILE: docs/typing.html ================================================ src/cpython/typing

src/cpython/typing

Lets

AbstractSet: PyObject = getAttr(pyImport("typing"), "AbstractSet")
Annotated: PyObject = getAttr(pyImport("typing"), "Annotated")
Any: PyObject = getAttr(pyImport("typing"), "Any")
AsyncContextManager: PyObject = getAttr(pyImport("typing"),
                                        "AsyncContextManager")
AsyncGenerator: PyObject = getAttr(pyImport("typing"), "AsyncGenerator")
AsyncIterable: PyObject = getAttr(pyImport("typing"), "AsyncIterable")
AsyncIterator: PyObject = getAttr(pyImport("typing"), "AsyncIterator")
Awaitable: PyObject = getAttr(pyImport("typing"), "Awaitable")
BinaryIO: PyObject = getAttr(pyImport("typing"), "BinaryIO")
ByteString: PyObject = getAttr(pyImport("typing"), "ByteString")
Callable: PyObject = getAttr(pyImport("typing"), "Callable")
ChainMap: PyObject = getAttr(pyImport("typing"), "ChainMap")
ClassVar: PyObject = getAttr(pyImport("typing"), "ClassVar")
Collection: PyObject = getAttr(pyImport("typing"), "Collection")
Concatenate: PyObject = getAttr(pyImport("typing"), "Concatenate")
Container: PyObject = getAttr(pyImport("typing"), "Container")
ContextManager: PyObject = getAttr(pyImport("typing"), "ContextManager")
Coroutine: PyObject = getAttr(pyImport("typing"), "Coroutine")
Counter: PyObject = getAttr(pyImport("typing"), "Counter")
DefaultDict: PyObject = getAttr(pyImport("typing"), "DefaultDict")
Deque: PyObject = getAttr(pyImport("typing"), "Deque")
Dict: PyObject = getAttr(pyImport("typing"), "Dict")
Final: PyObject = getAttr(pyImport("typing"), "Final")
ForwardRef: PyObject = getAttr(pyImport("typing"), "ForwardRef")
FrozenSet: PyObject = getAttr(pyImport("typing"), "FrozenSet")
Generator: PyObject = getAttr(pyImport("typing"), "Generator")
Generic: PyObject = getAttr(pyImport("typing"), "Generic")
Hashable: PyObject = getAttr(pyImport("typing"), "Hashable")
IO: PyObject = getAttr(pyImport("typing"), "IO")
ItemsView: PyObject = getAttr(pyImport("typing"), "ItemsView")
Iterable: PyObject = getAttr(pyImport("typing"), "Iterable")
Iterator: PyObject = getAttr(pyImport("typing"), "Iterator")
KeysView: PyObject = getAttr(pyImport("typing"), "KeysView")
List: PyObject = getAttr(pyImport("typing"), "List")
Literal: PyObject = getAttr(pyImport("typing"), "Literal")
Mapping: PyObject = getAttr(pyImport("typing"), "Mapping")
MappingView: PyObject = getAttr(pyImport("typing"), "MappingView")
Match: PyObject = getAttr(pyImport("typing"), "Match")
MutableMapping: PyObject = getAttr(pyImport("typing"), "MutableMapping")
MutableSequence: PyObject = getAttr(pyImport("typing"), "MutableSequence")
MutableSet: PyObject = getAttr(pyImport("typing"), "MutableSet")
NamedTuple: PyObject = getAttr(pyImport("typing"), "NamedTuple")
Optional: PyObject = getAttr(pyImport("typing"), "Optional")
OrderedDict: PyObject = getAttr(pyImport("typing"), "OrderedDict")
ParamSpec: PyObject = getAttr(pyImport("typing"), "ParamSpec")
Pattern: PyObject = getAttr(pyImport("typing"), "Pattern")
Protocol: PyObject = getAttr(pyImport("typing"), "Protocol")
Reversible: PyObject = getAttr(pyImport("typing"), "Reversible")
Sequence: PyObject = getAttr(pyImport("typing"), "Sequence")
Set: PyObject = getAttr(pyImport("typing"), "Set")
Sized: PyObject = getAttr(pyImport("typing"), "Sized")
SupportsAbs: PyObject = getAttr(pyImport("typing"), "SupportsAbs")
SupportsBytes: PyObject = getAttr(pyImport("typing"), "SupportsBytes")
SupportsComplex: PyObject = getAttr(pyImport("typing"), "SupportsComplex")
SupportsFloat: PyObject = getAttr(pyImport("typing"), "SupportsFloat")
SupportsIndex: PyObject = getAttr(pyImport("typing"), "SupportsIndex")
SupportsInt: PyObject = getAttr(pyImport("typing"), "SupportsInt")
SupportsRound: PyObject = getAttr(pyImport("typing"), "SupportsRound")
TextIO: PyObject = getAttr(pyImport("typing"), "TextIO")
Tuple: PyObject = getAttr(pyImport("typing"), "Tuple")
Type: PyObject = getAttr(pyImport("typing"), "Type")
TypedDict: PyObject = getAttr(pyImport("typing"), "TypedDict")
TypeVar: PyObject = getAttr(pyImport("typing"), "TypeVar")
Union: PyObject = getAttr(pyImport("typing"), "Union")
ValuesView: PyObject = getAttr(pyImport("typing"), "ValuesView")
================================================ FILE: docs/unicodedata.html ================================================ src/cpython/unicodedata

src/cpython/unicodedata

Procs

proc lookup(name: string or char): string
proc name(chr: string or char): string
proc decimal(chr: string or char): string
proc digit(chr: string or char): string
proc numeric(chr: string or char): string
proc category(chr: string or char): string
proc bidirectional(chr: string or char): string
proc combining(chr: string or char): int
proc east_asian_width(chr: string or char): string
proc mirrored(chr: string or char): int
proc decomposition(chr: string or char): string
proc normalize(form, unistr: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc is_normalized(form, unistr: string): bool {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc numeric(chr: string or char; default: string): string
proc digit(chr: string or char; default: string): string
proc decimal(chr: string or char; default: string): string
proc name(chr: string or char; default: string): string
================================================ FILE: docs/uu.html ================================================ src/cpython/uu

src/cpython/uu

Procs

proc encode(in_file, out_file, name, mode: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc encode(in_file, out_file: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decode(in_file, out_file, mode: string; quiet = false) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decode(in_file, out_file: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/uuid.html ================================================ src/cpython/uuid

src/cpython/uuid

    Dark Mode
Search:
Group by:

Procs

proc uuid1(): string {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc uuid4(): string {....raises: [Exception, ValueError, OSError, IOError,
                                EOFError, KeyError], tags: [RootEffect].}
proc uuid3(namespace, name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc uuid5(namespace, name: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/venv.html ================================================ src/cpython/venv

src/cpython/venv

Procs

proc create(env_dir: string; system_site_packages = false; clear = false;
            symlinks = false; with_pip = false; prompt = ".";
            upgrade_deps = false) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/warnings.html ================================================ src/cpython/warnings

src/cpython/warnings

    Dark Mode
Search:
Group by:

Procs

proc warn(message: string) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc warn_explicit(message: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc formatwarning(message: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc resetwarnings(message: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/webbrowser.html ================================================ src/cpython/webbrowser

src/cpython/webbrowser

    Dark Mode
Search:
Group by:

Procs

proc open_new(url: string) {....raises: [Exception, ValueError, OSError, IOError,
                                      EOFError, KeyError], tags: [RootEffect].}
proc open_new_tab(url: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: docs/winsound.html ================================================ src/cpython/winsound

src/cpython/winsound

    Dark Mode
Search:
Group by:

Procs

proc beep(frequency, duration: int) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc playSound(sound: string; flags: int) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc messageBeep(tipe: int) {....raises: [Exception, ValueError, OSError, IOError,
                                       EOFError, KeyError], tags: [RootEffect].}
proc messageBeep() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
                              KeyError], tags: [RootEffect].}
================================================ FILE: docs/zipapp.html ================================================ src/cpython/zipapp

src/cpython/zipapp

Procs

proc create_archive(source, target, interpreter, main: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc create_archive(source, target, interpreter: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc create_archive(source, target: string) {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc create_archive(source: string) {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc get_interpreter(archive: string): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
================================================ FILE: docs/zlib.html ================================================ src/cpython/zlib

src/cpython/zlib

Procs

proc adler32(data: string; value: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc adler32(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc crc32(data: string; value: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc crc32(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc compress(data: string; level = 9): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc compress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
proc decompress(data: string; wbits, bufsize: int): string {.
    ...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
    tags: [RootEffect].}
proc decompress(data: string): string {....raises: [Exception, ValueError, OSError,
    IOError, EOFError, KeyError], tags: [RootEffect].}
================================================ FILE: src/cpython/atexit.nim ================================================ ## * https://docs.python.org/3.10/library/atexit.html import nimpy template X(simbol; a) = discard nimpy.pyImport("atexit").simbol(a) proc register*[T](function: T) = X register, function proc unregister*[T](function: T) = X unregister, function ================================================ FILE: src/cpython/base64.nim ================================================ ## * https://docs.python.org/3.10/library/base64.html import nimpy template X(simbol; a): auto = nimpy.pyImport("base64").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("base64").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("base64").simbol(a, b, c).to(type(result)) proc b64encode*(s, altchars: string): string = X b64encode, s, altchars proc b64encode*(s: string): string = X b64encode, s proc b64decode*(s, altchars: string; validate=false): string = X b64decode, s, altchars, validate proc b64decode*(s: string): string = X b64decode, s proc standard_b64encode*(s: string): string = X standard_b64encode, s proc standard_b64decode*(s: string): string = X standard_b64decode, s proc urlsafe_b64encode*(s: string): string = X urlsafe_b64encode, s proc urlsafe_b64decode*(s: string): string = X urlsafe_b64decode, s proc b32encode*(s: string): string = X b32encode, s proc b32decode*(s: string; casefold=false): string = X b32decode, s, casefold proc b32hexencode*(s: string): string = X b32hexencode, s proc b32hexdecode*(s: string; casefold=false): string = X b32hexdecode, s, casefold proc b16encode*(s: string): string = X b16encode, s proc b16decode*(s: string; casefold=false): string = X b16decode, s, casefold proc a85encode*(s: string): string = X a85encode, s proc a85decode*(s: string): string = X a85decode, s proc b85encode*(s: string; pad=false): string = X b85encode, s, pad proc b85decode*(s: string): string = X b85decode, s proc decodebytes*(s: string): string = X decodebytes, s proc encodebytes*(s: string): string = X encodebytes, s ================================================ FILE: src/cpython/binascii.nim ================================================ ## * https://docs.python.org/3.10/library/binascii.html import nimpy template X(simbol; a): auto = nimpy.pyImport("binascii").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("binascii").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("binascii").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("binascii").simbol(a, b, c, d).to(type(result)) proc hexlify*(data: string): string = X hexlify, data proc a2b_hex*(data: string): string = X a2b_hex, data proc unhexlify*(data: string): string = X unhexlify, data proc b2a_hex*(data: string): string = X b2a_hex, data proc a2b_uu*(s: string): string = X a2b_uu, s proc b2a_uu*(s: string): string = X b2a_uu, s proc a2b_base64*(s: string): string = X a2b_base64, s proc b2a_base64*(s: string): string = X b2a_base64, s proc a2b_hqx*(s: string): string = X a2b_hqx, s proc rledecode_hqx*(s: string): string = X rledecode_hqx, s proc rlecode_hqx*(s: string): string = X rlecode_hqx, s proc b2a_hqx*(s: string): string = X b2a_hqx, s proc crc_hqx*(data, value: string): string = X crc_hqx, data, value proc crc32*(data, value: string): string = X crc32, data, value proc crc32*(data: string): string = X crc32, data proc a2b_qp*(s: string; header=false): string = X a2b_qp, s, header proc b2a_hex*(data: string; sep: char; bytes_per_sep = 1): string = X b2a_hex, data, sep, bytes_per_sep proc hexlify*(data: string; sep: char; bytes_per_sep = 1): string = X hexlify, data, sep, bytes_per_sep proc b2a_qp*(s: string; quotetabs=false; istext=true, header=false): string = X b2a_qp, s, quotetabs, istext, header ================================================ FILE: src/cpython/binhex.nim ================================================ ## * https://docs.python.org/3.10/library/binhex.html import nimpy template X(simbol) = discard nimpy.pyImport("binhex").simbol(input, output) proc binhex*(input, output: string) = X binhex proc hexbin*(input, output: string) = X hexbin ================================================ FILE: src/cpython/bisect.nim ================================================ ## https://docs.python.org/3.12/library/bisect.html import nimpy template X(simbol; a, b, c): int = nimpy.pyImport("bisect").simbol(a, b, c).to(int) proc bisect*(a, x: auto; lo: int = 0): int = X bisect, a, x, lo proc bisect_left*(a, x: auto; lo: int = 0): int = X bisect_left, a, x, lo proc bisect_right*(a, x: auto; lo: int = 0): int = X bisect_right, a, x, lo proc insort*(a, x: auto; lo: int = 0): int = X insort, a, x, lo proc insort_left*(a, x: auto; lo: int = 0): int = X insort_left, a, x, lo proc insort_right*(a, x: auto; lo: int = 0): int = X insort_right, a, x, lo ================================================ FILE: src/cpython/builtins.nim ================================================ ## * https://docs.python.org/3.10/library/builtins.html ## * https://docs.python.org/3/library/stdtypes.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("builtins").simbol(a, b, c).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("builtins").simbol(a, b).to(type(result)) template X(simbol; a, b, c, d, e, f) = discard nimpy.pyImport("builtins").simbol(a, b, c, d, e, f) template X(simbol; a): auto = when declared result: nimpy.pyImport("builtins").simbol(a).to(type(result)) else: discard nimpy.pyImport("builtins").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("builtins").simbol.to(tipe) copyright := string credits := string license := string proc abs*(x: int): int = X abs, x proc abs*(x: float): float = X abs, x proc all*(iterable: seq[auto]): bool = X all, iterable proc ascii*(obj: auto): string = X ascii, x proc bin*(x: int): string = X bin, x proc callable*(obj: auto): bool = X callable, obj proc chr*(i: int): string = X chr, i proc delattr*(obj: auto; name: string) = X delattr, obj, name proc dir*(obj: auto): seq[string] = X dir, obj proc eval*(expression: string) = X eval, expression proc exec*(obj: auto) = X exec, obj proc hasattr*(obj: auto; name: string): bool = X hasattr, obj, name proc hash*(obj: auto): int = X hash, obj proc help*(obj: auto) = X help, obj proc hex*(obj: auto): string = X hex, obj proc id*(obj: auto): int = X id, obj proc input*(prompt: string): string = X input, prompt proc oct*(x: int): string = X oct, x proc pow*(x, y, z: int): int = X pow, x, y, z proc pow*(x, y, z: float): float = X pow, x, y, z proc pow*(x, y: int): int = X pow, x, y proc pow*(x, y: float): float = X pow, x, y proc print*(obj: auto; sep = ' '; ends = '\n') = X print, sep, ends proc repr*(obj: auto): string = X repr, obj proc round*(number: float; ndigits: int): float = X round, number, ndigits proc setattr*(obj: auto; name: string; value: auto) = X setattr, obj, name, value proc sorted*(iterable: seq[int]): seq[int] = X sorted, iterable proc sorted*(iterable: seq[char]): seq[char] = X sorted, iterable proc sorted*(iterable: seq[bool]): seq[bool] = X sorted, iterable proc sorted*(iterable: seq[float]): seq[float] = X sorted, iterable proc sorted*(iterable: seq[string]): seq[string] = X sorted, iterable proc sum*(iterable: seq[int]): int = X sorted, iterable proc sum*(iterable: seq[float]): float = X sorted, iterable proc bit_length*(x: int): int = X bit_length, x proc bit_count*(x: int): int = X bit_count, x proc as_integer_ratio*(x: int or float): seq[int] = X as_integer_ratio, x proc is_integer*(x: float): bool = X is_integer, x proc complex*(re: int or float; im: int = 0): auto = X complex, re, im proc format_map*(s: string; mapping: auto): string = X format_map, s, mapping proc isidentifier*(x: string): bool = X isidentifier, x proc to_bytes*(x: int; length: int; byteorder: string): string = X to_bytes, x, length, byteorder proc format*(value: auto; format_spec: string ): string = X format, value, format_spec proc divmod*(a, b: int): tuple[quotient, remainder: int] = X divmod, a, b proc divmod*(a, b: float): tuple[quotient, remainder: float] = X divmod, a, b proc compile*(source, filename, mode: string; flags = 0; dont_inherit = false; optimize = -1) = X compile, source, filename, mode, flags, dont_inherit, optimize ================================================ FILE: src/cpython/bz2.nim ================================================ ## * https://docs.python.org/3.10/library/bz2.html import nimpy template X(simbol; a): auto = nimpy.pyImport("bz2").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("bz2").simbol(a, b).to(type(result)) proc compress*(data: string; compresslevel = 9): string = X compress, data, compresslevel proc decompress*(data: string): string = X decompress, data ================================================ FILE: src/cpython/calendar.nim ================================================ ## https://docs.python.org/3.12/library/calendar.html import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("calendar").simbol().to(type(result)) else: discard nimpy.pyImport("calendar").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("calendar").simbol(a).to(type(result)) else: discard nimpy.pyImport("calendar").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("calendar").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("calendar").simbol(a, b) template X(simbol; a, b, c): auto = when declared result: nimpy.pyImport("calendar").simbol(a, b, c).to(type(result)) else: discard nimpy.pyImport("calendar").simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: nimpy.pyImport("calendar").simbol(a, b, c, d).to(type(result)) else: discard nimpy.pyImport("calendar").simbol(a, b, c, d) template X(simbol; a, b, c, d, e): auto = when declared result: nimpy.pyImport("calendar").simbol(a, b, c, d, e).to(type(result)) else: discard nimpy.pyImport("calendar").simbol(a, b, c, d, e) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("calendar").simbol.to(tipe) MONDAY := int TUESDAY := int WEDNESDAY := int THURSDAY := int FRIDAY := int SATURDAY := int SUNDAY := int proc setfirstweekday*(weekday: Natural) = X setfirstweekday, weekday proc firstweekday*(): int = X firstweekday proc isleap*(year: Positive): bool = X isleap, year proc leapdays*(y1, y2: Natural): int = X leapdays, y1, y2 proc weekday*(year: Positive; month: 1..12; day: 1..31): int = X weekday, year, month, day proc weekheader*(n: Positive): string = X weekheader, n proc monthrange*(year: Positive; month: 1..12): array[2, int] = X monthrange, year, month proc monthcalendar*(year: Positive; month: 1..12): seq[seq[int]] = X monthcalendar, year, month proc prmonth*(year: Positive; month: 1..12; w = 0, l = 0) = X prmonth, year, month, w, l proc month*(year: Positive; month: 1..12; w = 0, l = 0): string = X month, year, month, w, l proc prcal*(year: Positive; w = 0, l = 0, c = 6, m = 3) = X prcal, year, w, l, c, m proc calendar*(year: Positive; w = 2, l = 1, c = 6, m = 3): string = X calendar, year, w, l, c, m ================================================ FILE: src/cpython/cmath.nim ================================================ ## * https://docs.python.org/3.10/library/cmath.html import nimpy template X(simbol): auto = nimpy.pyImport("cmath").simbol(x).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("cmath").simbol(a, b).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("cmath").simbol.to(tipe) pi := float e := float tau := float inf := float nan := float proc exp*(x: int): int = X exp proc exp*(x: float): float = X exp proc log*(x: int): int = X log proc log*(x: float): float = X log proc phase*(x: int): int = X phase proc phase*(x: float): float = X phase proc log10*(x: int): int = X log10 proc log10*(x: float): float = X log10 proc sqrt*(x: int): int = X sqrt proc sqrt*(x: float): float = X sqrt proc acos*(x: int): int = X acos proc acos*(x: float): float = X acos proc asin*(x: int): int = X asin proc asin*(x: float): float = X asin proc atan*(x: int): int = X atan proc atan*(x: float): float = X atan proc cos*(x: int): int = X cos proc cos*(x: float): float = X cos proc sin*(x: int): int = X sin proc sin*(x: float): float = X sin proc tan*(x: int): int = X tan proc tan*(x: float): float = X tan proc acosh*(x: int): int = X acosh proc acosh*(x: float): float = X acosh proc asinh*(x: int): int = X asinh proc asinh*(x: float): float = X asinh proc atanh*(x: int): int = X atanh proc atanh*(x: float): float = X atanh proc cosh*(x: int): int = X cosh proc cosh*(x: float): float = X cosh proc sinh*(x: int): int = X sinh proc sinh*(x: float): float = X sinh proc tanh*(x: int): int = X tanh proc tanh*(x: float): float = X tanh proc isinf*(x: float): bool = X isinf proc isnan*(x: float): bool = X isnan proc polar*(x: int): tuple[r, phi: int] = X polar proc polar*(x: float): tuple[r, phi: float] = X polar proc isfinite*(x: float): bool = X isfinite proc log*(x: int; base: int): int = X log, x, base proc log*(x: float; base: int): float = X log, x, base proc isclose*(a, b: float): bool = X isclose, a, b ================================================ FILE: src/cpython/codecs.nim ================================================ ## * https://docs.python.org/3.10/library/codecs.html import nimpy template X(simbol): auto = nimpy.pyImport("codecs").simbol(obj, encoding, errors).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("codecs").simbol.to(tipe) BOM := string BOM_BE := string BOM_LE := string BOM_UTF8 := string BOM_UTF16 := string BOM_UTF16_BE := string BOM_UTF16_LE := string BOM_UTF32 := string BOM_UTF32_BE := string BOM_UTF32_LE := string proc encode*(obj: string; encoding = "utf-8", errors = "strict"): string = X encode proc decode*(obj: string; encoding = "utf-8", errors = "strict"): string = X decode ================================================ FILE: src/cpython/codeop.nim ================================================ ## * https://docs.python.org/3.10/library/codeop.html import nimpy template X(simbol) = discard nimpy.pyImport("codeop").simbol(source, filename, symbol) proc compile_command*(source: string, filename="", symbol="single") = X compile_command ================================================ FILE: src/cpython/colorsys.nim ================================================ ## * https://docs.python.org/3.10/library/colorsys.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("colorsys").simbol(a, b, c).to(type(result)) proc rgb_to_yiq*(red, green, blue: float): tuple[y, i, q: float] = X rgb_to_yiq, red, green, blue proc yiq_to_rgb*(y, i, q: float): tuple[red, green, blue: float] = X yiq_to_rgb, y, i, q proc rgb_to_hls*(red, green, blue: float): tuple[hue, lightness, saturation: float] = X rgb_to_hls, red, green, blue proc hls_to_rgb*(hue, lightness, saturation: float): tuple[red, green, blue: float] = X hls_to_rgb, hue, lightness, saturation proc rgb_to_hsv*(red, green, blue: float): tuple[hue, saturation, value: float] = X rgb_to_hsv, red, green, blue proc hsv_to_rgb*(hue, saturation, value: float): tuple[red, green, blue: float] = X hsv_to_rgb, hue, saturation, value ================================================ FILE: src/cpython/compileall.nim ================================================ ## * https://docs.python.org/3.10/library/compileall.html import nimpy template X(simbol; a): auto = nimpy.pyImport("compileall").simbol(a).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("compileall").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("compileall").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e, f): auto = nimpy.pyImport("compileall").simbol(a, b, c, d, e, f).to(type(result)) proc compile_dir*(dir: string; maxlevels: int; ddir: string; force=false): bool = X compile_dir, dir, maxlevels, ddir, force proc compile_dir*(dir: string): bool = X compile_dir, dir proc compile_file*(fullname: string; ddir: string; force=false): bool = X compile_file, fullname, ddir, force proc compile_file*(fullname: string): bool = X compile_file, fullname proc compile_path*(skip_curdir=true, maxlevels=0, force=false, quiet=0, legacy=false, optimize= -1): bool = X compile_path, skip_curdir, maxlevels, force, quiet, legacy, optimize ================================================ FILE: src/cpython/copy.nim ================================================ ## * https://docs.python.org/3.10/library/copy.html import nimpy template X(simbol): auto = nimpy.pyImport("copy").simbol(x).to(type(x)) proc deepcopy*(x: auto): auto = X deepcopy proc copy*(x: auto): auto = X copy ================================================ FILE: src/cpython/crypt.nim ================================================ ## * https://docs.python.org/3.10/library/crypt.html import nimpy template X(simbol): auto = nimpy.pyImport("crypt").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("crypt").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("crypt").simbol(a, b).to(type(result)) proc crypt*(word: string): string = X crypt, word proc crypt*(word, salt: string): string = X crypt, word, salt proc mksalt*(): string = X mksalt ================================================ FILE: src/cpython/curses.nim ================================================ ## * https://docs.python.org/3.10/library/curses.html import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("curses").simbol().to(type(result)) else: discard nimpy.pyImport("curses").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("curses").simbol(a).to(type(result)) else: discard nimpy.pyImport("curses").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("curses").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("curses").simbol(a, b) template X(simbol; a, b, c): auto = when declared result: nimpy.pyImport("curses").simbol(a, b, c).to(type(result)) else: discard nimpy.pyImport("curses").simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: nimpy.pyImport("curses").simbol(a, b, c, d).to(type(result)) else: discard nimpy.pyImport("curses").simbol(a, b, c, d) template Z(simbol): auto = nimpy.pyImport("curses.ascii").simbol(c).to(type(result)) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("curses").simbol.to(tipe) ERR := int OK := int version := int A_ALTCHARSET := int A_BLINK := int A_BOLD := int A_DIM := int A_INVIS := int A_ITALIC := int A_NORMAL := int A_PROTECT := int A_REVERSE := int A_STANDOUT := int A_UNDERLINE := int A_HORIZONTAL := int A_LEFT := int A_LOW := int A_RIGHT := int A_TOP := int A_VERTICAL := int A_CHARTEXT := int A_ATTRIBUTES := int A_COLOR := int KEY_MIN := int KEY_BREAK := int KEY_DOWN := int KEY_UP := int KEY_LEFT := int KEY_RIGHT := int KEY_HOME := int KEY_BACKSPACE := int KEY_F0 := int KEY_Fn := int KEY_DL := int KEY_IL := int KEY_DC := int KEY_IC := int KEY_EIC := int KEY_CLEAR := int KEY_EOS := int KEY_EOL := int KEY_SF := int KEY_SR := int KEY_NPAGE := int KEY_PPAGE := int KEY_STAB := int KEY_CTAB := int KEY_CATAB := int KEY_ENTER := int KEY_SRESET := int KEY_RESET := int KEY_PRINT := int KEY_LL := int KEY_A1 := int KEY_A3 := int KEY_B2 := int KEY_C1 := int KEY_C3 := int KEY_BTAB := int KEY_BEG := int KEY_CANCEL := int KEY_CLOSE := int KEY_COMMAND := int KEY_COPY := int KEY_CREATE := int KEY_END := int KEY_EXIT := int KEY_FIND := int KEY_HELP := int KEY_MARK := int KEY_MESSAGE := int KEY_MOVE := int KEY_NEXT := int KEY_OPEN := int KEY_OPTIONS := int KEY_PREVIOUS := int KEY_REDO := int KEY_REFERENCE := int KEY_REFRESH := int KEY_REPLACE := int KEY_RESTART := int KEY_RESUME := int KEY_SAVE := int KEY_SBEG := int KEY_SCANCEL := int KEY_SCOMMAND := int KEY_SCOPY := int KEY_SCREATE := int KEY_SDC := int KEY_SDL := int KEY_SELECT := int KEY_SEND := int KEY_SEOL := int KEY_SEXIT := int KEY_SFIND := int KEY_SHELP := int KEY_SHOME := int KEY_SIC := int KEY_SLEFT := int KEY_SMESSAGE := int KEY_SMOVE := int KEY_SNEXT := int KEY_SOPTIONS := int KEY_SPREVIOUS := int KEY_SPRINT := int KEY_SREDO := int KEY_SREPLACE := int KEY_SRIGHT := int KEY_SRSUME := int KEY_SSAVE := int KEY_SSUSPEND := int KEY_SUNDO := int KEY_SUSPEND := int KEY_UNDO := int KEY_MOUSE := int KEY_RESIZE := int KEY_MAX := int COLOR_BLACK := int COLOR_BLUE := int COLOR_CYAN := int COLOR_GREEN := int COLOR_MAGENTA := int COLOR_RED := int COLOR_WHITE := int COLOR_YELLOW := int ncurses_version := tuple[major, minor, patch: int] proc isalnum*(c: string or char): bool = Z isalnum proc isalpha*(c: string or char): bool = Z isalpha proc isascii*(c: string or char): bool = Z isascii proc isblank*(c: string or char): bool = Z isblank proc iscntrl*(c: string or char): bool = Z iscntrl proc isdigit*(c: string or char): bool = Z isdigit proc isgraph*(c: string or char): bool = Z isgraph proc islower*(c: string or char): bool = Z islower proc isprint*(c: string or char): bool = Z isprint proc ispunct*(c: string or char): bool = Z ispunct proc isspace*(c: string or char): bool = Z isspace proc isupper*(c: string or char): bool = Z isupper proc isZdigit*(c: string or char): bool = Z isZdigit proc isctrl*(c: string or char): bool = Z isctrl proc ismeta*(c: string or char): bool = Z ismeta proc ascii*(c: char or int): string = Z ascii proc ctrl*(c: char or int): string = Z ctrl proc alt*(c: char or int): string = Z alt proc unctrl*(c: char or int): string = Z unctrl proc baudrate*() = X baudrate proc beep*() = X beep proc can_change_color*(): bool = X can_change_color proc cbreak*() = X cbreak proc def_prog_mode*() = X def_prog_mode proc def_shell_mode*() = X def_shell_mode proc delay_output*(ms: int) = X delay_output, ms proc doupdate*() = X doupdate proc endwin*() = X endwin proc erasechar*(): string = X erasechar proc filter*() = X filter proc flash*() = X flash proc flushinp*() = X flushinp proc has_ic*(): bool = X has_ic proc has_il*(): bool = X has_il proc has_key*(ch: string or char): bool = X has_key, ch proc has_colors*(): bool = X has_colors proc isendwin*() = X isendwin proc keyname*(k: int) = X keyname, k proc killchar*(): string = X killchar proc longname*(): string = X longname proc meta*(flag: bool) = X meta proc getsyx*(): tuple[y, x: int] = X getsyx proc napms*(ms: int) = X napms proc nl*() = X nl proc nocbreak*() = X nocbreak proc noecho*() = X noecho proc nonl*() = X nonl proc noqiflush*() = X noqiflush proc noraw*() = X noraw proc mouseinterval*(interval: int): int = X mouseinterval, interval proc putp*(str: string) = X putp, str proc qiflush*(flag: bool) = X qiflush, flag proc qiflush*() = X qiflush proc raw*() = X raw proc reset_prog_mode*() = X reset_prog_mode proc reset_shell_mode*() = X reset_shell_mode proc resetty*() = X resetty proc halfdelay*(tenths: range[1..255]) = X halfdelay, tenths proc savetty*() = X savetty proc get_escdelay*(): int = X get_escdelay proc resize_term*(nlines, ncols: int) = X resize_term, nlines, ncols proc set_escdelay*(ms: int) = X set_escdelay proc get_tabsize*(): int = X get_tabsize proc set_tabsize*(size: int): int = X set_tabsize, size proc setsyx*(y, x: int): int = X setsyx, y, x proc setupterm*(term: string; fd = -1) = X setupterm, term, fd proc start_color*() = X start_color proc termattrs*(): int = X termattrs proc termname*(): string = X termname proc tigetflag*(capname: int): int = X tigetflag, capname proc tigetnum*(capname: int): int = X tigetnum, capname proc tigetstr*(capname: string): int = X tigetstr, capname proc typeahead*(fd: int) = X typeahead, fd proc update_lines_cols*() = X update_lines_cols proc unget_wch*(ch: char or string) = X unget_wch, ch proc use_env*(flag: bool) = X use_env, flag proc use_default_colors*() = X use_default_colors proc unctrl*(ch: char or string): string = X unctrl, ch proc ungetch*(ch: char or string): string = X ungetch, ch proc color_content*(color_number: int): tuple[red, green, blue: int] = X color_content, color_number proc color_pair*(pair_number: int): string = X color_pair, pair_number proc getmouse*(): tuple[id, x, y, z, bstate: int] = X getmouse proc has_extended_color_support*(): bool = X has_extended_color_support proc init_color*(color_number, r, g, b: range[0..1000]) = X init_color, color_number, r, g, b proc is_term_resized*(nlines, ncols: int) = X is_term_resized, nlines, ncols proc pair_content*(pair_number: int): tuple[fg, bg: int] = X pair_content, pair_number ================================================ FILE: src/cpython/dbd.nim ================================================ ## * https://docs.python.org/3.10/library/dbd.html import nimpy proc set_trace*() = discard nimpy.pyImport("dbd").set_trace() ================================================ FILE: src/cpython/decimal.nim ================================================ ## * https://docs.python.org/3.10/library/decimal.html import nimpy type PyDecimal* = nimpy.PyObject template X(simbol): auto = nimpy.pyBuiltinsModule().simbol(self).to(type(result)) template O(simbol): auto = nimpy.pyImport("operator").simbol(a, b).to(type(result)) template Z(simbol): PyDecimal = nimpy.pyImport("operator").simbol(a).to(PyDecimal) proc `'PyD`*(value: string): PyDecimal = nimpy.pyImport("decimal").Decimal(value) proc newDecimal*(value: SomeNumber or string): PyDecimal = nimpy.pyImport("decimal").Decimal(value) proc prec*(value: int) = nimpy.pyImport("decimal").getcontext().prec = value proc toFloat*(self: PyDecimal): BiggestFloat = X `float` proc toInt*(self: PyDecimal): BiggestInt = X `int` proc toUint*(self: PyDecimal): BiggestUInt = X `int` proc toString*(self: PyDecimal): string = X `str` proc `-`*(a: PyDecimal): PyDecimal = Z neg proc `+`*(a: PyDecimal): PyDecimal = Z pos proc `<`*(a, b: PyDecimal): bool = O lt proc `<=`*(a, b: PyDecimal): bool = O le proc `==`*(a, b: PyDecimal): bool = O eq proc `>`*(a, b: PyDecimal): bool = O gt proc `>=`*(a, b: PyDecimal): bool = O ge proc `!=`*(a, b: PyDecimal): bool = O ne proc `+`*(a, b: PyDecimal): PyDecimal = O add proc `-`*(a, b: PyDecimal): PyDecimal = O sub proc `*`*(a, b: PyDecimal): PyDecimal = O mul proc `div`*(a, b: PyDecimal): PyDecimal = O truediv proc `**`*(a, b: PyDecimal): PyDecimal = O pow proc `shl`*(a, b: PyDecimal): PyDecimal = O lshift proc `shr`*(a, b: PyDecimal): PyDecimal = O rshift proc `+=`*(a, b: PyDecimal): PyDecimal = O iadd proc inc*(a, b: PyDecimal): PyDecimal = O iadd proc `-=`*(a, b: PyDecimal): PyDecimal = O isub proc dec*(a, b: PyDecimal): PyDecimal = O isub proc `*=`*(a, b: PyDecimal): PyDecimal = O imul proc `/=`*(a, b: PyDecimal): PyDecimal = O itruediv proc `//=`*(a, b: PyDecimal): PyDecimal = O ifloordiv proc `&=`*(a, b: PyDecimal): PyDecimal = O iand proc `<<=`*(a, b: PyDecimal): PyDecimal = O ilshift proc `>>=`*(a, b: PyDecimal): PyDecimal = O irshift proc `%=`*(a, b: PyDecimal): PyDecimal = O imod proc `@=`*(a, b: PyDecimal): PyDecimal = O imatmul proc `|=`*(a, b: PyDecimal): PyDecimal = O ior proc `**=`*(a, b: PyDecimal): PyDecimal = O ipow proc `^=`*(a, b: PyDecimal): PyDecimal = O ixor proc low*(self: PyDecimal): PyDecimal = nimpy.pyImport("decimal").MIN_EMIN proc high*(self: PyDecimal): PyDecimal = nimpy.pyImport("decimal").MAX_EMAX runnableExamples: import nimpy let x: PyDecimal = newDecimal"999999999999999999999999999999999999999.999999999999999999999999999999999999999" let y: PyDecimal = -999999999999999999999999999999999999999.999999999999999999999999999999999999999'PyD let z: PyDecimal = newDecimal BiggestUInt.high echo toString(x * y + z - z) ================================================ FILE: src/cpython/dis.nim ================================================ ## * https://docs.python.org/3.10/library/dis.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("dis").simbol(a, b) template X(simbol; a): auto = when declared result: nimpy.pyImport("dis").simbol(a).to(type(result)) else: discard nimpy.pyImport("dis").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("dis").simbol.to(tipe) opname := seq[string] cmp_op := seq[string] hasconst := seq[int] hasfree := seq[int] hasname := seq[int] hasjrel := seq[int] hasjabs := seq[int] haslocal := seq[int] hascompare := seq[int] proc code_info(obj: auto): string = X code_info, obj proc show_code(obj: auto) = X show_code, obj proc dis(obj: auto) = X dis, obj proc disb(obj: auto) = X disb, obj proc disassemble(obj: auto; lasti= -1) = X disassemble, obj, lasti proc findlabels(obj: auto): seq[int] = X findlabels, obj ================================================ FILE: src/cpython/doctest.nim ================================================ ## * https://docs.python.org/3.10/library/doctest.html import nimpy template X(simbol): auto = nimpy.pyImport("doctest").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("doctest").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("doctest").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("doctest").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("doctest").simbol(a, b, c, d).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("doctest").simbol.to(tipe) DONT_ACCEPT_TRUE_FOR_1 := int DONT_ACCEPT_BLANKLINE := int NORMALIZE_WHITESPACE := int ELLIPSIS := int IGNORE_EXCEPTION_DETAIL := int SKIP := int COMPARISON_FLAGS := int REPORT_UDIFF := int REPORT_CDIFF := int REPORT_NDIFF := int REPORT_ONLY_FIRST_FAILURE := int FAIL_FAST := int REPORTING_FLAGS := int proc testmod*(): tuple[failure_count, test_count: int] = X testmod proc testfile*(filename: string; module_relative: bool; name, package: string): tuple[failure_count, test_count: int] = X testfile, filename, module_relative, name, package proc testfile*(filename: string; module_relative: bool; name: string): tuple[failure_count, test_count: int] = X testfile, filename, module_relative, name proc testfile*(filename: string; module_relative: bool): tuple[failure_count, test_count: int] = X testfile, filename, module_relative proc testfile*(filename: string): tuple[failure_count, test_count: int] = X testfile, filename proc run_docstring_examples*(f: string): tuple[failure_count, test_count: int] = X run_docstring_examples, f proc script_from_examples*(examples: string): string = X script_from_examples, examples proc debug_src*(sources: string; pm=false): string = X debug_src, sources, pm ================================================ FILE: src/cpython/ensurepip.nim ================================================ ## * https://docs.python.org/3.10/library/ensurepip.html import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("ensurepip").simbol().to(type(result)) else: discard nimpy.pyImport("ensurepip").simbol() template X(simbol; a, b, c, d, e, f) = discard nimpy.pyImport("ensurepip").simbol(a, b, c, d, e, f) proc version*(): string = X version proc bootstrap*(root: string; upgrade=false; user=false; altinstall=false; default_pip=false; verbosity=0) = X bootstrap, root, upgrade, user, altinstall, default_pip, verbosity proc bootstrap*() = X bootstrap ================================================ FILE: src/cpython/errno.nim ================================================ ## * https://docs.python.org/3.10/library/errno.html import nimpy template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("builtins").simbol.to(tipe) EPERM := int ENOENT := int ESRCH := int EINTR := int EIO := int ENXIO := int E2BIG := int ENOEXEC := int EBADF := int ECHILD := int EAGAIN := int ENOMEM := int EACCES := int EFAULT := int ENOTBLK := int EBUSY := int EEXIST := int EXDEV := int ENODEV := int ENOTDIR := int EISDIR := int EINVAL := int ENFILE := int EMFILE := int ENOTTY := int ETXTBSY := int EFBIG := int ENOSPC := int ESPIPE := int EROFS := int EMLINK := int EPIPE := int EDOM := int ERANGE := int EDEADLK := int ENAMETOOLONG := int ENOLCK := int ENOSYS := int ENOTEMPTY := int ELOOP := int EWOULDBLOCK := int ENOMSG := int EIDRM := int ECHRNG := int EL2NSYNC := int EL3HLT := int EL3RST := int ELNRNG := int EUNATCH := int ENOCSI := int EL2HLT := int EBADE := int EBADR := int EXFULL := int ENOANO := int EBADRQC := int EBADSLT := int EDEADLOCK := int EBFONT := int ENOSTR := int ENODATA := int ETIME := int ENOSR := int ENONET := int ENOPKG := int EREMOTE := int ENOLINK := int EADV := int ESRMNT := int ECOMM := int EPROTO := int EMULTIHOP := int EDOTDOT := int EBADMSG := int EOVERFLOW := int ENOTUNIQ := int EBADFD := int EREMCHG := int ELIBACC := int ELIBBAD := int ELIBSCN := int ELIBMAX := int ELIBEXEC := int EILSEQ := int ERESTART := int ESTRPIPE := int EUSERS := int ENOTSOCK := int EDESTADDRREQ := int EMSGSIZE := int EPROTOTYPE := int ENOPROTOOPT := int EPROTONOSUPPORT := int ESOCKTNOSUPPORT := int EOPNOTSUPP := int EPFNOSUPPORT := int EAFNOSUPPORT := int EADDRINUSE := int EADDRNOTAVAIL := int ENETDOWN := int ENETUNREACH := int ENETRESET := int ECONNABORTED := int ECONNRESET := int ENOBUFS := int EISCONN := int ENOTCONN := int ESHUTDOWN := int ETOOMANYREFS := int ETIMEDOUT := int ECONNREFUSED := int EHOSTDOWN := int EHOSTUNREACH := int EALREADY := int EINPROGRESS := int ESTALE := int EUCLEAN := int ENOTNAM := int ENAVAIL := int EISNAM := int EREMOTEIO := int EDQUOT := int ================================================ FILE: src/cpython/faulthandler.nim ================================================ ## * https://docs.python.org/3.10/library/faulthandler.html import nimpy template X(simbol; a): auto = discard nimpy.pyImport("faulthandler").simbol(a) template X(simbol; a, b): auto = discard nimpy.pyImport("faulthandler").simbol(a, b) template X(simbol): auto = when declared result: nimpy.pyImport("faulthandler").simbol().to(type(result)) else: discard nimpy.pyImport("faulthandler").simbol() proc dump_traceback*() = X dump_traceback proc enable*() = X enable proc disable*() = X disable proc is_enabled*(): bool = X is_enabled proc register*(signum: int) = X register, signum proc unregister*(signum: int) = X unregister, signum proc cancel_dump_traceback_later*() = X cancel_dump_traceback_later proc dump_traceback_later*(timeout: int, repeat=false) = X dump_traceback_later, timeout, repeat ================================================ FILE: src/cpython/fcntl.nim ================================================ ## * https://docs.python.org/3.10/library/fcntl.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("fcntl").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("fcntl").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("fcntl").simbol(a, b, c, d, e).to(type(result)) proc fcntl*(fd: int; cmd: string; arg=0): string = X fcntl, fd, cmd, arg proc ioctl*(fd, request: int; arg=0; mutate_flag=true): string = X ioctl, fd, request, arg, mutate_flag proc lockf*(fd: int; cmd: string; len=0, start=0, whence=0): string = X lockf, fd, cmd, len, start, whence ================================================ FILE: src/cpython/filecmp.nim ================================================ ## * https://docs.python.org/3.10/library/filecmp.html import nimpy template X(simbol) = discard nimpy.pyImport("filecmp").simbol() template X(simbol; a, b, c): auto = nimpy.pyImport("filecmp").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("filecmp").simbol(a, b, c, d).to(type(result)) let DEFAULT_IGNORES*: seq[string] = nimpy.pyImport("filecmp").DEFAULT_IGNORES.to(seq[string]) proc clear_cache*() = X clear_cache proc cmp*(f1, f2: string, shallow=true): bool = X cmp, f1, f2, shallow proc cmpfiles*(dir1, dir2: string; common: seq[string]; shallow=true): tuple[match, mismatch, errors: seq[string]] = X cmpfiles, dir1, dir2, common, shallow ================================================ FILE: src/cpython/fnmatch.nim ================================================ ## * https://docs.python.org/3.10/library/fnmatch.html import nimpy template X(simbol; a): auto = nimpy.pyImport("fnmatch").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("fnmatch").simbol(a, b).to(type(result)) proc fnmatch*(filename, pattern: string): bool = X fnmatch, filename, pattern proc fnmatchcase*(filename, pattern: string): bool = X fnmatchcase, filename, pattern proc filter*(names: seq[string]; pattern: string): seq[string] = X filter, names, pattern proc translate*(pattern: string): string = X translate, pattern ================================================ FILE: src/cpython/gc.nim ================================================ ## * https://docs.python.org/3.10/library/gc.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("gc").simbol(a, b) template X(simbol; a, b, c) = discard nimpy.pyImport("gc").simbol(a, b, c) template X(simbol): auto = when declared result: nimpy.pyImport("gc").simbol().to(type(result)) else: discard nimpy.pyImport("gc").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("gc").simbol(a).to(type(result)) else: discard nimpy.pyImport("gc").simbol(a) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("gc").simbol.to(tipe) DEBUG_STATS := int DEBUG_COLLECTABLE := int DEBUG_UNCOLLECTABLE := int DEBUG_SAVEALL := int DEBUG_LEAK := int proc enable*() = X enable proc disable*() = X disable proc freeze*() = X freeze proc unfreeze*() = X unfreeze proc collect*() = X collect proc collect*(generation: range[0..2]) = X collect, generation proc set_debug*(flags: int) = X set_debug, flags proc isenabled*(): bool = X isenabled proc get_debug*(): int = X get_debug proc is_tracked*(objeto: auto): bool = X is_tracked, objeto proc is_finalized*(objeto: auto): bool = X is_finalized, objeto proc get_freeze_count*(): int = X get_freeze_count proc set_threshold*(threshold0, threshold1, threshold2: int) = X set_threshold, threshold0, threshold1, threshold2 proc set_threshold*(threshold0, threshold1: int) = X set_threshold, threshold0, threshold1 proc set_threshold*(threshold0: int) = X set_threshold, threshold0 proc get_count*(): tuple[count0, count1, count2: int] = X get_count proc get_threshold*(): tuple[threshold0, threshold1, threshold2: int] = X get_threshold template nogc*(code) = ## Temporarily disable the Python Garbage Collector, ## run your code, and enable Garbage Collector again. try: disable() code finally: enable() ================================================ FILE: src/cpython/getopt.nim ================================================ ## * https://docs.python.org/3.10/library/getopt.html import nimpy template X(simbol; a, b): auto = nimpy.pyImport("getopt").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("getopt").simbol(a, b, c).to(type(result)) proc getopt*(args: seq[string]; shortopts: string; longopts: seq[string]): tuple[option: seq[tuple[key, value: string]], value: seq[string]] = X getopt, args, shortopts, longopts proc getopt*(args: seq[string]; shortopts: string): tuple[option: seq[tuple[key, value: string]], value: seq[string]] = X getopt, args, shortopts proc gnu_getopt*(args: seq[string]; shortopts: string; longopts: seq[string]): tuple[option: seq[tuple[key, value: string]], value: seq[string]] = X gnu_getopt, args, shortopts, longopts proc gnu_getopt*(args: seq[string]; shortopts: string): tuple[option: seq[tuple[key, value: string]], value: seq[string]] = X gnu_getopt, args, shortopts ================================================ FILE: src/cpython/getpass.nim ================================================ ## * https://docs.python.org/3.10/library/getpass.html import nimpy template X(simbol): auto = nimpy.pyImport("getpass").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("getpass").simbol(a).to(type(result)) proc getpass*(prompt = "Password: "): string = X getpass, prompt proc getuser*(): string = X getuser ================================================ FILE: src/cpython/gettext.nim ================================================ ## * https://docs.python.org/3.10/library/gettext.html import nimpy template X(simbol) = discard nimpy.pyImport("gettext").simbol() template X(simbol; a, b) = discard nimpy.pyImport("gettext").simbol(a, b) template X(simbol; a, b, c): auto = nimpy.pyImport("gettext").simbol(a, b, c).to(type(result)) template X(simbol; a): auto = when declared result: nimpy.pyImport("gettext").simbol(a).to(type(result)) else: discard nimpy.pyImport("gettext").simbol(a) proc bindtextdomain*(domain, localedir: string) = X bindtextdomain, domain, localedir proc bindtextdomain*(domain: string) = X bindtextdomain, domain proc bind_textdomain_codeset*(domain, codeset: string) = X bind_textdomain_codeset, domain, codeset proc bind_textdomain_codeset*(domain: string) = X bind_textdomain_codeset, domain proc textdomain*(domain: string) = X textdomain, domain proc textdomain*() = X textdomain proc gettext*(message: string): string = X gettext, message proc ngettext*(singular, plural: string; n: int): string = X ngettext, singular, plural, n proc lgettext*(message: string): string = X lgettext, message proc lngettext*(singular, plural: string; n: int): string = X lngettext, singular, plural, n ================================================ FILE: src/cpython/glob.nim ================================================ ## * https://docs.python.org/3.10/library/glob.html import nimpy template X(simbol; a): auto = nimpy.pyImport("glob").simbol(a).to(type(result)) proc glob*(pathname: string): seq[string] = X glob, pathname proc escape*(pathname: string): string = X escape, pathname ================================================ FILE: src/cpython/grp.nim ================================================ ## * https://docs.python.org/3.10/library/grp.html import nimpy template X(simbol): auto = nimpy.pyImport("grp").simbol( ).to(type(result)) template X(simbol; a): auto = nimpy.pyImport("grp").simbol(a).to(type(result)) proc getgrgid*(gid: int): tuple[gr_name, gr_passwd: string, gr_gid: int, gr_mem: seq[string]] = X getgrgid, gid proc getgrnam*(name: string): tuple[gr_name, gr_passwd: string, gr_gid: int, gr_mem: seq[string]] = X getgrnam, name proc getgrall*(): seq[tuple[gr_name, gr_passwd: string, gr_gid: int, gr_mem: seq[string]]] = X getgrall ================================================ FILE: src/cpython/gzip.nim ================================================ ## * https://docs.python.org/3.10/library/gzip.html import nimpy template X(simbol; a): auto = nimpy.pyImport("gzip").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("gzip").simbol(a, b).to(type(result)) proc compress*(data: string; compresslevel = 9): string = X compress, data, compresslevel proc decompress*(data: string): string = X decompress, data ================================================ FILE: src/cpython/hashlib.nim ================================================ ## * https://docs.python.org/3.10/library/hashlib.html from std/os import splitFile import nimpy let module = nimpy.pyImport(static(currentSourcePath().splitFile.name)) template X(simbol; a): auto = when declared result: module.simbol(a).to(type(result)) else: discard module.simbol(a) template X(simbol; a, b, c, d): auto = when declared result: module.simbol(a, b, c, d).to(type(result)) else: discard module.simbol(a, b, c, d) template X(simbol; a, b, c, d, e): auto = when declared result: module.simbol(a, b, c, d, e).to(type(result)) else: discard module.simbol(a, b, c, d, e) proc sha3_512*(data: string): string = X sha3_512, data proc shake_256*(data: string): string = X shake_256, data proc shake_128*(data: string): string = X shake_128, data proc md5*(data: string): string = X md5, data proc sha512_224*(data: string): string = X sha512_224, data proc mdc2*(data: string): string = X mdc2, data proc sha3_384*(data: string): string = X sha3_384, data proc md4*(data: string): string = X md4, data proc sha3_256*(data: string): string = X sha3_256, data proc blake2b*(data: string): string = X blake2b, data proc sha512*(data: string): string = X sha512, data proc sha224*(data: string): string = X sha224, data proc blake2s*(data: string): string = X blake2s, data proc sha512_256*(data: string): string = X sha512_256, data proc whirlpool*(data: string): string = X whirlpool, data proc ripemd160*(data: string): string = X ripemd160, data proc sha384*(data: string): string = X sha384, data proc sha1*(data: string): string = X sha1, data proc sha256*(data: string): string = X sha256, data proc sm3*(data: string): string = X sm3, data proc sha3_224*(data: string): string = X sha3_224, data proc pbkdf2_hmac*(hash_name, password, salt: string; iterations, dklen: int): string = X pbkdf2_hmac, hash_name, password, salt, iterations, dklen proc pbkdf2_hmac*(hash_name, password, salt: string; iterations: int): string = X pbkdf2_hmac, hash_name, password, salt, iterations # scrypt(password, *, salt, n, r, p, maxmem=0, dklen=64 # blake2b(data=b'', *, digest_size=64, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False, usedforsecurity=True) # blake2s(data=b'', *, digest_size=32, key=b'', salt=b'', person=b'', fanout=1, depth=1, leaf_size=0, node_offset=0, node_depth=0, inner_size=0, last_node=False, usedforsecurity=True)¶ # TODO: finish ================================================ FILE: src/cpython/hmac.nim ================================================ ## * https://docs.python.org/3.10/library/hmac.html import nimpy proc compare_digest*(a, b: string): bool = nimpy.pyImport("hmac").compare_digest(a, b).to(bool) ================================================ FILE: src/cpython/html_entities.nim ================================================ ## * https://docs.python.org/3.10/library/html.entities.html import std/tables import nimpy template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("html.entities").simbol.to(tipe) html5 := Table[string, string] entitydefs := Table[string, string] name2codepoint := Table[string, int] codepoint2name := Table[int, string] ================================================ FILE: src/cpython/imghdr.nim ================================================ ## * https://docs.python.org/3.10/library/imghdr.html import nimpy proc what*(file: string): string = nimpy.pyImport("imghdr").what(file ).to(string) proc what*(file, h: string): string = nimpy.pyImport("imghdr").what(file, h).to(string) ================================================ FILE: src/cpython/imp.nim ================================================ ## * https://docs.python.org/3.10/library/imp.html import nimpy template X(simbol; a, b): auto = nimpy.pyImport("imp").simbol(a, b).to(type(result)) template X(simbol; a, b, c, d) = discard nimpy.pyImport("imp").simbol(a, b, c, d) template X(simbol): auto = when declared result: nimpy.pyImport("imp").simbol().to(type(result)) else: discard nimpy.pyImport("imp").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("imp").simbol(a).to(type(result)) else: discard nimpy.pyImport("imp").simbol(a) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("imp").simbol.to(tipe) PY_SOURCE := int PY_COMPILED := int C_EXTENSION := int PKG_DIRECTORY := int C_BUILTIN := int PY_FROZEN := int proc get_magic*(): string = X get_magic proc get_suffixes*(): seq[tuple[suffix, mode, tipe: string]] = X get_suffixes proc find_module*(name, path: string): tuple[file, pathname, description: string] = X find_module, name, path proc find_module*(name: string): tuple[file, pathname, description: string] = X find_module, name proc load_module*(name, file, pathname, description: string) = X load_module, name, file, pathname, description proc reload*(module: string) = X reload, module proc cache_from_source*(path: string): string = X cache_from_source, path proc source_from_cache*(path: string): string = X source_from_cache, path proc lock_held*(): bool = X lock_held proc acquire_lock*() = X acquire_lock proc release_lock*() = X release_lock ================================================ FILE: src/cpython/importlib.nim ================================================ ## * https://docs.python.org/3.10/library/importlib.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("importlib").simbol(a, b, c).to(type(result)) template X(simbol; a, b) = discard nimpy.pyImport("importlib").simbol(a, b) template X(simbol; a) = discard nimpy.pyImport("importlib").simbol(a) template Z(simbol; a, b): auto = nimpy.pyImport("importlib.resources").simbol(a, b).to(type(result)) template Y(simbol): auto = nimpy.pyImport("importlib.machinery").simbol().to(type(result)) template V(simbol; a): auto = nimpy.pyImport("importlib.util").simbol(a).to(type(result)) template V(simbol; a, b): auto = nimpy.pyImport("importlib.util").simbol(a, b).to(type(result)) template X(simbol): auto = when declared result: nimpy.pyImport("importlib").simbol().to(type(result)) else: discard nimpy.pyImport("importlib").simbol() template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("importlib.machinery").simbol.to(tipe) SOURCE_SUFFIXES := seq[string] DEBUG_BYTECODE_SUFFIXES := seq[string] OPTIMIZED_BYTECODE_SUFFIXES := seq[string] BYTECODE_SUFFIXES := seq[string] EXTENSION_SUFFIXES := seq[string] proc import_module*(name, package: string) = X import_module, name, package proc import_module*(name: string) = X import_module, name proc invalidate_caches*() = X invalidate_caches proc reload*(module: auto) = X reload, module proc is_resource*(package, name: string): bool = Z is_resource, package, name proc all_suffixes*(): seq[string] = Y all_suffixes proc cache_from_source*(path: string): string = V cache_from_source, path proc source_from_cache*(path: string): string = V source_from_cache, path proc decode_source*(path: string): string = V decode_source, path proc resolve_name*(name, package: string): string = V resolve_name, name, package proc source_hash*(source_bytes: string): string = V source_hash, source_bytes ================================================ FILE: src/cpython/keyword.nim ================================================ ## * https://docs.python.org/3.10/library/keyword.html import nimpy template X(simbol): auto = nimpy.pyImport("keyword").simbol(symbol).to(type(result)) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("keyword").simbol.to(tipe) kwlist := seq[string] softkwlist := seq[string] proc iskeyword*(symbol: string): bool = X iskeyword proc issoftkeyword*(symbol: string): bool = X issoftkeyword ================================================ FILE: src/cpython/linecache.nim ================================================ ## * https://docs.python.org/3.10/library/linecache.html import nimpy template X(simbol) = discard nimpy.pyImport("linecache").simbol() template X(simbol; a): auto = nimpy.pyImport("linecache").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("linecache").simbol(a, b).to(type(result)) proc getline*(filename: string; lineno: int): string = X getline, filename, lineno proc clearcache*() = X clearcache proc checkcache*(filename: string): string = X checkcache, filename proc lazycache*(filename: string): string = X lazycache, filename ================================================ FILE: src/cpython/logging.nim ================================================ ## * https://docs.python.org/3.10/library/logging.html import nimpy template X(simbol; a, b): auto = discard nimpy.pyImport("logging").simbol(a, b) template X(simbol): auto = discard nimpy.pyImport("logging").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("logging").simbol(a).to(type(result)) else: discard nimpy.pyImport("logging").simbol(a) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("logging").simbol.to(tipe) CRITICAL := int ERROR := int WARNING := int INFO := int DEBUG := int NOTSET := int proc disable*(level: string or int) = X disable, level proc addLevelName*(level: int; levelName: string) = X addLevelName, level, levelName proc getLevelName*(level: int): string = X getLevelName, level proc shutdown*() = X shutdown proc captureWarnings*(capture: bool) = X captureWarnings, capture when false: # Nimpy does not like varargs ?. proc debug*(msg: string; args: varargs[auto]) = X debug, msg, args proc info*(msg: string; args: varargs[auto]) = X info, msg, args proc warning*(msg: string; args: varargs[auto]) = X warning, msg, args proc error*(msg: string; args: varargs[auto]) = X error, msg, args proc critical*(msg: string; args: varargs[auto]) = X critical, msg, args proc exception*(msg: string; args: varargs[auto]) = X exception, msg, args proc log*(msg: string; args: varargs[auto]) = X log, msg, args ================================================ FILE: src/cpython/lzma.nim ================================================ ## * https://docs.python.org/3.10/library/lzma.html import nimpy template X(simbol; a): auto = nimpy.pyImport("lzma").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("lzma").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("lzma").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("lzma").simbol(a, b, c, d).to(type(result)) proc compress*(data: string, format=1, check = -1, preset: range[0..9] = 9): string = X compress, data, format, check, preset proc compress*(data: string): string = X compress, data proc decompress*(data: string; format: int; memlimit: int): string = X decompress, data, format, memlimit proc decompress*(data: string; format = 0): string = X decompress, data, format proc decompress*(data: string): string = X decompress, data ================================================ FILE: src/cpython/marshal.nim ================================================ ## * https://docs.python.org/3.10/library/marshal.html import nimpy template X(simbol; a, b): auto = nimpy.pyImport("marshal").simbol(a, b).to(type(result)) proc dumps*(value: auto; version: range[0..4] = 4): string = X dumps, value, version ================================================ FILE: src/cpython/math.nim ================================================ ## * https://docs.python.org/3.10/library/math.html import nimpy template X(simbol; a): auto = nimpy.pyImport("math").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("math").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("math").simbol(a, b, c).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("math").simbol.to(tipe) pi := float e := float tau := float inf := float nan := float proc ceil*(x: int or float): float = X ceil, x proc comb*(n, k: int or float): float = X comb, n, k proc fabs*(x: int or float): float = X fabs, x proc factorial*(x: int or float): float = X factorial, x proc floor*(x: int or float): float = X floor, x proc fmod*(x, y: int or float): float = X fmod, x, y proc frexp*(x: int or float): float = X fmod, x proc fsum*(iterable: seq[int] or seq[float]): float = X fsum, x proc gcd*(integers: varargs[int]): float = X gcd, integers proc lcm*(integers: varargs[int]): float = X lcm, integers proc isclose*(a, b: int or float): bool = X isclose, a, b proc isfinite*(x: int or float): bool = X isfinite, x proc isnan*(x: int or float): bool = X isnan, x proc isinf*(x: int or float): bool = X isinf, x proc isqrt*(x: int or float): bool = X isqrt, x proc ldexp*(x, i: int or float): float = X ldexp, x, i proc modf*(x: int or float): float = X modf, x, i proc nextafter*(x, y: int or float): float = X nextafter, x, i proc perm*(x, y: int): float = X perm, x, y proc perm*(x: int): float = X perm, x proc prod*(iterable: seq[int] or seq[float]): float = X prod, iterable proc remainder*(x, y: int or float): float = X remainder, x, i proc trunc*(x: int or float): float = X trunc, x proc ulp*(x: int or float): float = X ulp, x proc exp*(x: int or float): float = X exp, x proc exp2*(x: int or float): float = X exp2, x proc cbrt*(x: int or float): float = X cbrt, x proc expm1*(x: int or float): float = X expm1, x proc log*(x: int or float): float = X log, x proc log*(x: int or float; base: int): float = X log, x, base proc log1p*(x: int or float): float = X log1p, x proc log2*(x: int or float): float = X log2, x proc log10*(x: int or float): float = X log10, x proc pow*(x, y: int or float): float = X pow, x, y proc sqrt*(x: int or float): float = X sqrt, x proc acos*(x: int or float): float = X acos, x proc asin*(x: int or float): float = X asin, x proc atan*(x: int or float): float = X atan, x proc atan2*(x, y: int or float): float = X atan2, x, y proc cos*(x: int or float): float = X cos, x proc dist*(x, y: int or float): float = X dist, x, y proc hypot*(coordinates: varargs[float]): float = X hypot, coordinates proc sin*(x: int or float): float = X sin, x proc tan*(x: int or float): float = X tan, x proc degrees*(x: int or float): float = X degrees, x proc radians*(x: int or float): float = X radians, x proc acosh*(x: int or float): float = X acosh, x proc asinh*(x: int or float): float = X asinh, x proc atanh*(x: int or float): float = X atanh, x proc cosh*(x: int or float): float = X cosh, x proc sinh*(x: int or float): float = X sinh, x proc tanh*(x: int or float): float = X tanh, x proc erf*(x: int or float): float = X erf, x proc erfc*(x: int or float): float = X erfc, x proc gamma*(x: int or float): float = X gamma, x proc lgamma*(x: int or float): float = X lgamma, x ================================================ FILE: src/cpython/mimetypes.nim ================================================ ## * https://docs.python.org/3.10/library/mimetypes.html import nimpy template X(simbol) = discard nimpy.pyImport("mimetypes").simbol() template X(simbol; a) = discard nimpy.pyImport("mimetypes").simbol(a) template X(simbol; a, b, c) = discard nimpy.pyImport("mimetypes").simbol(a, b, c) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("mimetypes").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("mimetypes").simbol(a, b) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("mimetypes").simbol.to(tipe) inited := bool knownfiles := seq[string] proc init*(files: seq[string]) = X init, files proc init*() = X init proc read_mime_types*(filename: string) = X read_mime_types, filename proc add_type*(tipe, ext: string; strict=true) = X add_type, tipe, ext, strict proc read_windows_registry*(strict = true) = X read_windows_registry, strict proc read*(filename: string; strict = true) = X read, filename, strict proc guess_type*(url: string; strict=true): string = X guess_type, url, strict proc guess_all_extensions*(tipe: string; strict=true): seq[string] = X guess_all_extensions, tipe, strict proc guess_extension*(tipe: string; strict=true): string = X guess_extension, tipe, strict ================================================ FILE: src/cpython/nis.nim ================================================ ## * https://docs.python.org/3.10/library/nis.html import nimpy template X(simbol): auto = nimpy.pyImport("nis").simbol().to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("nis").simbol(a, b).to(type(result)) proc match*(key, mapname: string): seq[string] = X match, key, mapname proc get_default_domain*(): string = X get_default_domain ================================================ FILE: src/cpython/ntpath.nim ================================================ ## * https://github.com/python/cpython/blob/main/Lib/ntpath.py ## * You may want to use this because in Python has faster performance compared to `os.path`. import nimpy template X(simbol; a): auto = nimpy.pyImport("ntpath").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("ntpath").simbol(a, b).to(type(result)) proc normcase*(s: string): string = X normcase, s proc isabs*(s: string): bool = X isabs, s proc join*(a, b: string): string = X join, a, b proc splitdrive*(s: string): tuple[drive, path: string] = X splitdrive, s proc split*(s: string): tuple[head, tail: string] = X split, s proc basename*(s: string): string = X basename, s proc dirname*(s: string): string = X basename, s proc commonprefix*(s: seq[string]): string = X commonprefix, s proc getsize*(s: string): int = X getsize, s proc getmtime*(s: string): float = X getmtime, s proc getatime*(s: string): float = X getatime, s proc getctime*(s: string): float = X getctime, s proc islink*(s: string): bool = X islink, s proc exists*(s: string): bool = X exists, s proc lexists*(s: string): bool = X lexists, s proc isdir*(s: string): bool = X isdir, s proc isfile*(s: string): bool = X isfile, s proc ismount*(s: string): bool = X ismount, s proc expanduser*(s: string): string = X expanduser, s proc expandvars*(s: string): string = X expandvars, s proc normpath*(s: string): string = X normpath, s proc abspath*(s: string): string = X abspath, s proc samefile*(path1, path2: string): bool = X samefile, path1, path2 proc relpath*(path, start: string): string = X relpath, path, start ================================================ FILE: src/cpython/operator.nim ================================================ ## * https://docs.python.org/3.10/library/operator.html import nimpy template X(simbol; a): auto = nimpy.pyImport("operator").simbol(a).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("operator").simbol(a, b, c).to(type(result)) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("operator").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("operator").simbol(a, b) proc lt*(a, b: auto): bool = X lt, a, b proc eq*(a, b: auto): bool = X eq, a, b proc le*(a, b: auto): bool = X le, a, b proc ne*(a, b: auto): bool = X ne, a, b proc ge*(a, b: auto): bool = X ge, a, b proc gt*(a, b: auto): bool = X gt, a, b proc add*(a, b: int): int = X add, a, b proc add*(a, b: float): float = X add, a, b proc floordiv*(a, b: int): int = X floordiv, a, b proc floordiv*(a, b: float): float = X floordiv, a, b proc lshift*(a, b: int): int = X lshift, a, b proc lshift*(a, b: float): float = X lshift, a, b proc mul*(a, b: int): int = X mul, a, b proc mul*(a, b: float): float = X mul, a, b proc matmul*(a, b: int): int = X mul, a, b proc matmul*(a, b: float): float = X mul, a, b proc pow*(a, b: int): int = X pow, a, b proc pow*(a, b: float): float = X pow, a, b proc rshift*(a, b: int): int = X rshift, a, b proc rshift*(a, b: float): float = X rshift, a, b proc sub*(a, b: int): int = X sub, a, b proc sub*(a, b: float): float = X sub, a, b proc truediv*(a, b: int): int = X truediv, a, b proc truediv*(a, b: float): float = X truediv, a, b proc index*(a: auto): int = X index, a proc truth*(a: auto): bool = X truth, a proc abs*(a: int): int = X abs, a proc abs*(a: float): float = X abs, a proc invert*(a: int): int = X invert, a proc invert*(a: float): float = X invert, a proc neg*(a: int): int = X neg, a proc neg*(a: float): float = X neg, a proc pos*(a: int): int = X pos, a proc pos*(a: float): float = X pos, a proc iadd*(a, b: float or int) = X iadd, a, b proc iand*(a, b: float or int) = X iand, a, b proc iconcat*(a, b: float or int) = X iconcat, a, b proc ifloordiv*(a, b: float or int) = X ifloordiv, a, b proc ilshift*(a, b: float or int) = X ilshift, a, b proc imod*(a, b: float or int) = X imod, a, b proc imul*(a, b: float or int) = X imul, a, b proc imatmul*(a, b: float or int) = X imatmul, a, b proc ior*(a, b: float or int) = X ior, a, b proc ipow*(a, b: float or int) = X ipow, a, b proc irshift*(a, b: float or int) = X irshift, a, b proc isub*(a, b: float or int) = X isub, a, b proc itruediv*(a, b: float or int) = X itruediv, a, b proc ixor*(a, b: float or int) = X ixor, a, b proc delitem*(a: seq[int]; b: int) = X delitem, a, b proc delitem*(a: seq[char]; b: int) = X delitem, a, b proc delitem*(a: seq[bool]; b: int) = X delitem, a, b proc delitem*(a: seq[float]; b: int) = X delitem, a, b proc delitem*(a: seq[string]; b: int) = X delitem, a, b proc indexOf*(a: seq[int]; b: int): int = X indexOf, a, b proc indexOf*(a: seq[char]; b: char): int = X indexOf, a, b proc indexOf*(a: seq[bool]; b: bool): int = X indexOf, a, b proc indexOf*(a: seq[float]; b: float): int = X indexOf, a, b proc indexOf*(a: seq[string]; b: string): int = X indexOf, a, b proc concat*(a, b: seq[int]): seq[int] = X concat, a, b proc concat*(a, b: seq[char]): seq[char] = X concat, a, b proc concat*(a, b: seq[bool]): seq[bool] = X concat, a, b proc concat*(a, b: seq[float]): seq[float] = X concat, a, b proc concat*(a, b: seq[string]): seq[string] = X concat, a, b proc concat*(a: seq[int]; b: int): bool = X concat, a, b proc concat*(a: seq[char]; b: char): bool = X concat, a, b proc concat*(a: seq[bool]; b: bool): bool = X concat, a, b proc concat*(a: seq[float]; b: float): bool = X concat, a, b proc concat*(a: seq[string]; b: string): bool = X concat, a, b proc countOf*(a: seq[int]; b: int): int = X countOf, a, b proc countOf*(a: seq[char]; b: char): int = X countOf, a, b proc countOf*(a: seq[bool]; b: bool): int = X countOf, a, b proc countOf*(a: seq[float]; b: float): int = X countOf, a, b proc countOf*(a: seq[string]; b: string): int = X countOf, a, b proc length_hint*(obj: auto; default=0): int = X length_hint, obj, default proc setitem*(a: seq[int]; b: int; c: int): int = X setitem, a, b, c proc setitem*(a: seq[char]; b: int; c: char): int = X setitem, a, b, c proc setitem*(a: seq[bool]; b: int; c: bool): int = X setitem, a, b, c proc setitem*(a: seq[float]; b: int; c: float): int = X setitem, a, b, c proc setitem*(a: seq[string]; b: int; c: string): int = X setitem, a, b, c proc call*[T](obj: T; args: auto) = X call, obj, args # https://docs.python.org/3.12/library/operator.html#operator.call ================================================ FILE: src/cpython/os.nim ================================================ ## * https://docs.python.org/3.10/library/os.html import nimpy template Y(simbol; a): auto = nimpy.pyImport("os.path").simbol(a).to(type(result)) template Y(simbol; a, b): auto = nimpy.pyImport("os.path").simbol(a, b).to(type(result)) template X(simbol): auto = when declared result: nimpy.pyImport("os").simbol().to(type(result)) else: discard nimpy.pyImport("os").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("os").simbol(a).to(type(result)) else: discard nimpy.pyImport("os").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("os").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("os").simbol(a, b) template X(simbol; a, b, c): auto = when declared result:nimpy.pyImport("os").simbol(a, b, c).to(type(result)) else: discard nimpy.pyImport("os").simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: nimpy.pyImport("os").simbol(a, b, c, d).to(type(result)) else: discard nimpy.pyImport("os").simbol(a, b, c, d) template X(simbol; a, b, c, d, e): auto = when declared result: nimpy.pyImport("os").simbol(a, b, c, d, e).to(type(result)) else: discard nimpy.pyImport("os").simbol(a, b, c, d, e) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("os").simbol.to(tipe) name := string curdir := string pardir := string sep := string altsep := string extsep := string pathsep := string defpath := string linesep := string devnull := string PRIO_PROCESS := int PRIO_PGRP := int PRIO_USER := int F_LOCK := int F_TLOCK := int F_ULOCK := int F_TEST := int SEEK_SET := int SEEK_CUR := int SEEK_END := int O_RDONLY := int O_WRONLY := int O_RDWR := int O_APPEND := int O_CREAT := int O_EXCL := int O_TRUNC := int O_DSYNC := int O_RSYNC := int O_SYNC := int O_NDELAY := int O_NONBLOCK := int O_NOCTTY := int O_CLOEXEC := int O_BINARY := int O_NOINHERIT := int O_SHORT_LIVED := int O_TEMPORARY := int O_RANDOM := int O_SEQUENTIAL := int O_TEXT := int O_EVTONLY := int O_FSYNC := int O_SYMLINK := int O_NOFOLLOW_ANY := int O_ASYNC := int O_DIRECT := int O_DIRECTORY := int O_NOFOLLOW := int O_NOATIME := int O_PATH := int O_TMPFILE := int O_SHLOCK := int O_EXLOCK := int POSIX_FADV_NORMAL := int POSIX_FADV_SEQUENTIAL := int POSIX_FADV_RANDOM := int POSIX_FADV_NOREUSE := int POSIX_FADV_WILLNEED := int POSIX_FADV_DONTNEED := int RWF_NOWAIT := int RWF_HIPRI := int RWF_DSYNC := int RWF_SYNC := int RWF_APPEND := int SPLICE_F_MOVE := int SPLICE_F_NONBLOCK := int SPLICE_F_MORE := int F_OK := int R_OK := int W_OK := int X_OK := int MFD_CLOEXEC := int MFD_ALLOW_SEALING := int MFD_HUGETLB := int MFD_HUGE_SHIFT := int MFD_HUGE_MASK := int MFD_HUGE_64KB := int MFD_HUGE_512KB := int MFD_HUGE_1MB := int MFD_HUGE_2MB := int MFD_HUGE_8MB := int MFD_HUGE_16MB := int MFD_HUGE_32MB := int MFD_HUGE_256MB := int MFD_HUGE_512MB := int MFD_HUGE_1GB := int MFD_HUGE_2GB := int MFD_HUGE_16GB := int EFD_CLOEXEC := int EFD_NONBLOCK := int EFD_SEMAPHORE := int XATTR_SIZE_MAX := int XATTR_CREATE := int XATTR_REPLACE := int EX_OK := int EX_USAGE := int EX_DATAERR := int EX_NOINPUT := int EX_NOUSER := int EX_NOHOST := int EX_UNAVAILABLE := int EX_SOFTWARE := int EX_OSERR := int EX_OSFILE := int EX_CANTCREAT := int EX_IOERR := int EX_TEMPFAIL := int EX_PROTOCOL := int EX_NOPERM := int EX_CONFIG := int EX_NOTFOUND := int POSIX_SPAWN_OPEN := int POSIX_SPAWN_CLOSE := int POSIX_SPAWN_DUP2 := int P_NOWAIT := int P_NOWAITO := int P_WAIT := int P_DETACH := int P_OVERLAY := int P_PID := int P_PGID := int P_ALL := int P_PIDFD := int WEXITED := int WSTOPPED := int WNOWAIT := int CLD_EXITED := int CLD_KILLED := int CLD_DUMPED := int CLD_TRAPPED := int CLD_STOPPED := int CLD_CONTINUED := int WNOHANG := int WCONTINUED := int WUNTRACED := int SCHED_OTHER := int SCHED_BATCH := int SCHED_IDLE := int SCHED_SPORADIC := int SCHED_FIFO := int SCHED_RR := int SCHED_RESET_ON_FORK := int RTLD_LAZY := int RTLD_NOW := int RTLD_GLOBAL := int RTLD_LOCAL := int RTLD_NODELETE := int RTLD_NOLOAD := int RTLD_DEEPBIND := int GRND_NONBLOCK := int GRND_RANDOM := int PIDFD_NONBLOCK := int # https://docs.python.org/3.12/library/os.html#os.PIDFD_NONBLOCK proc getcwd*(): string = X getcwd proc getpgid*(pid: int): int = X getpgid, pid proc chdir*(path: string) = X chdir, path proc fspath*(path: string): string = X fspath, path proc get_exec_path*(): seq[string] = X get_exec_path proc ctermid*(): string = X ctermid proc getegid*(): int = X getegid proc geteuid*(): int = X geteuid proc getgid*(): int = X getgid proc getgroups*(): seq[int] = X getgroups proc getlogin*(): string = X getlogin proc getpgrp*(): int = X getpgrp proc getpid*(): int = X getpid proc getenv*(key: string; default = ""): string = X getenv, key, default proc getenvb*(key: string; default = ""): string = X getenvb, key, default proc getgrouplist*(user: string; group: int): seq[int] = X getgrouplist, user, group proc getppid*(): int = X getppid proc getpriority*(which: string; who: int): int = X getpriority, which, who proc getresuid*(): tuple[ruid: int, euid: int, suid: int] = X getresuid proc getresgid*(): tuple[rgid: int, egid: int, sgid: int] = X getresgid proc getuid*(): int = X getuid proc initgroups*(username: string; gid: int): seq[int] = X initgroups, username, gid proc putenv*(key, value: string) = X putenv, key, value proc setegid*(egid: int) = X setegid, egid proc seteuid*(euid: int) = X seteuid, euid proc setgid*(gid: int) = X setgid, gid proc setgroups*(groups: seq[int]) = X setgroups, groups proc setpgrp*() = X setpgrp proc setpgid*(pid, pgrp: int) = X setpgid, pid, pgrp proc setpriority*(which, who: int; priority: -20..19 = 0) = X setpriority, which, who, priority proc setregid*(rgid, egid: int) = X setregid proc setresgid*(rgid, egid, sgid: int) = X setresgid, rgid, egid, sgid proc setresuid*(ruid, euid, suid: int) = X setresuid, ruid, euid, suid proc setreuid*(ruid, euid: int) = X setreuid, ruid, euid proc getsid*(pid: int): int = X getsid, pid proc setsid*() = X setsid proc setuid*(uid: int) = X setuid, uid proc strerror*(errorCode: int): string = X strerror, errorCode proc umask*(mask: int): int = X umask, mask proc uname*(): tuple[sysname, nodename, release, version, machine: string] = X uname proc unsetenv*(key: string) = X unsetenv, key proc close*(fileDescriptor: int) = X close, fileDescriptor proc closerange*(fromFileDescriptor, toFileDescriptor: int) = X closerange, fromFileDescriptor, toFileDescriptor proc copy_file_range*(src, dst, count: int): int = X copy_file_range, src, dst, count proc device_encoding*(fd: int): string = X device_encoding, fd proc fchmod*(fd, mode: int) = X fchmod, fd, mode proc fchown*(fd, uid, gid: int) = X fchown, fd, uid, gid proc fdatasync*(fd: int) = X fdatasync, fd proc fsync*(fd: int) = X fsync, fd proc ftruncate*(fd, len: int) = X ftruncate, fd, len proc get_blocking*(fd: int): bool = X get_blocking, fd proc isatty*(fd: int): bool = X isatty, fd proc lseek*(fd, pos, how: int): int = X lseek, fd, pos, how proc openpty*(): tuple[master, slave: int] = X openpty proc pipe*(): tuple[read, write: int] = X pipe proc pipe2*(flags: int): tuple[read, write: int] = X pipe2, flags proc posix_fallocate*(fd, offset, len: int) = X posix_fallocate, fd, offset, len proc posix_fadvise*(fd, offset, len, advice: int) = X posix_fadvise, fd, offset, len, advice proc pread*(fd, n, offset: int): string = X pread, fd, n, offset proc pwrite*(fd: int; str: string; offset: int): int = X pwrite, fd, str, offset proc read*(fd, n: int): string = X read, fd, n proc sendfile*(out_fd, in_fd, offset, count: int): int = X sendfile proc splice*(src, dst, count: int) = X splice, src, dst, count proc tcgetpgrp*(fd: int): int = X tcgetpgrp, fd proc tcsetpgrp*(fd, pg: int) = X tcsetpgrp, fd, pg proc ttyname*(fd: int): string = X ttyname, fd proc write*(fd: int; str: string): int = X write, fd, str proc get_terminal_size*(fd: int) = X get_terminal_size, fd proc get_inheritable*(fd: int): bool = X get_inheritable, fd proc set_inheritable*(fd: int; inheritable: bool) = X set_inheritable, fd, inheritable proc access*(path: string; mode: int): bool = X access, path proc access*(path: string; mode: int; effective_ids, follow_symlinks: bool): bool = X access, path, mode, effective_ids, follow_symlinks proc chflags*(path: string; flags: int) = X chflags, path, flags proc chflags*(path: string; flags: int; follow_symlinks: bool) = X chflags, path, flags, follow_symlinks proc chmod*(path: string; mode: int) = X chmod, path, mode proc chmod*(path: string; mode: int; follow_symlinks: bool) = X chmod, path, mode, follow_symlinks proc chown*(path: string; uid, gid: int) = X chown, path, uid, gid proc chown*(path: string; uid, gid: int; follow_symlinks: bool) = X chown, path, uid, gid, follow_symlinks proc chroot*(path: string) = X chroot, path proc fchdir*(fd: int) = X fchdir, fd proc getcwdb*(): string = X getcwdb proc lchflags*(path: string; flags: int) = X lchflags, path, flags proc lchmod*(path: string; mode: int) = X lchmod, path, mode proc lchown*(path: string; uid, gid: int) = X lchown, path, uid, gid proc link*(src, dst: string) = X link, src, dst proc link*(src, dst: string; follow_symlinks: bool) = X link, src, dst, follow_symlinks proc listdir*(path = "."): seq[string] = X listdir, path proc mkdir*(path: string; mode = 511) = X mkdir, path, mode proc makedirs*(name: string; mode=511, exist_ok=false) = X makedirs, name, mode, exist_ok proc mkfifo*(path: string; mode=438) = X mkfifo, path, mode proc mknod*(path: string, mode=384, device=0) = X mknod, path, mode, device proc major*(device: int): int = X major, device proc minor*(device: int): int = X minor, device proc makedev*(major, minor: int) = X makedev, major, minor proc readlink*(path: string): string = X readlink, path proc remove*(path: string) = X remove, path proc removedirs*(path: string) = X removedirs, path proc rename*(src, dst: string) = X rename, src, dst proc renames*(olds, news: string) = X renames, olds, news proc replace*(src, dst: string) = X replace, src, dst proc rmdir*(path: string) = X rmdir, path proc symlink*(src, dst: string; target_is_directory=false) = X symlink, src, dst, target_is_directory proc sync*() = X sync proc truncate*(path: string; len: int) = X truncate, path, len proc unlink*(path: string) = X unlink, path proc utime*(path: string) = X utime, path proc memfd_create*(path: string): int = X memfd_create, path proc eventfd*(initval: int): int = X eventfd, initval proc eventfd_write*(fd: int; value: string) = X eventfd_write, fd, value proc eventfd_read*(fd: int): int = X eventfd_read, fd proc getxattr*(path, attribute: string; follow_symlinks=true): string = X getxattr, path, attribute, follow_symlinks proc listxattr*(path: string; follow_symlinks=true): seq[string] = X listxattr, path, follow_symlinks proc removexattr*(path, attribute: string; follow_symlinks=true) = X removexattr, path, attribute, follow_symlinks proc setxattr*(path, attribute, value: string; flags=0; follow_symlinks=true) = X setxattr, path, attribute, value, flags, follow_symlinks proc abort*() = X abort proc add_dll_directory*(path: string) = X add_dll_directory, path proc fork*(): int = X fork proc forkpty*(): tuple[pid, fd: int] = X forkpty proc kill*(pid, sig: int) = X kill, pid, sig proc killpg*(pgid, sig: int) = X killpg, pgid, sig proc nice*(increment: int): int = X nice, increment proc pidfd_open*(pid: int; flags=0): int = X pidfd_open, pid, flags proc startfile*(path, operation, arguments, cwd: string) = X startfile, path, operation, arguments, cwd proc startfile*(path: string) = X startfile, path proc system*(command: string): int = X system, command proc times*(): tuple[user, system, children_user, children_system, elapsed: float] = X times proc wait*(): tuple[pid, exitCode: int] = X wait proc waitpid*(pid, options: int): tuple[pid, exitCode: int] = X waitpid, pid, options proc waitstatus_to_exitcode*(status: int): int = X waitstatus_to_exitcode, status proc WCOREDUMP*(status: int): bool = X WCOREDUMP, status proc WIFCONTINUED*(status: int): bool = X WIFCONTINUED, status proc WIFSTOPPED*(status: int): bool = X WIFSTOPPED, status proc WIFSIGNALED*(status: int): bool = X WIFSIGNALED, status proc WIFEXITED*(status: int): bool = X WIFEXITED, status proc WEXITSTATUS*(status: int): int = X WEXITSTATUS, status proc WSTOPSIG*(status: int): int = X WSTOPSIG, status proc WTERMSIG*(status: int): int = X WTERMSIG, status proc sched_get_priority_min*(policy: int): int = X sched_get_priority_min, policy proc sched_get_priority_max*(policy: int): int = X sched_get_priority_max, policy proc sched_getscheduler*(pid: int): int = X sched_getscheduler, pid proc sched_rr_get_interval*(pid: int): float = X sched_rr_get_interval, pid proc sched_yield*() = X sched_yield proc sched_setaffinity*(pid: int; mask: seq[int]) = X sched_setaffinity, pid, mask proc confstr*(name: string): string = X confstr, name proc cpu_count*(): int = X cpu_count proc getloadavg*(): array[3, float] = X getloadavg proc sysconf*(name: string): int = X sysconf, name proc getrandom*(size: int; flags = 0): seq[byte] = X getrandom, size, flags proc urandom*(size: int): string = X urandom, size proc abspath*(path: string): string = Y abspath, path proc basename*(path: string): string = Y basename, path proc commonpath*(paths: seq[string]): string = Y commonpath, paths proc commonprefix*(paths: seq[string]): string = Y commonprefix, paths proc dirname*(path: string): string = Y dirname, path proc exists*(path: string): bool = Y exists, path proc lexists*(path: string): bool = Y lexists, path proc expanduser*(path: string): string = Y expanduser, path proc expandvars*(path: string): string = Y expandvars, path proc getatime*(path: string): float = Y getatime, path proc getmtime*(path: string): float = Y getmtime, path proc getctime*(path: string): float = Y getctime, path proc getsize*(path: string): int = Y getsize, path proc isabs*(path: string): bool = Y isabs, path proc isfile*(path: string): bool = Y isfile, path proc isdir*(path: string): bool = Y isdir, path proc islink*(path: string): bool = Y islink, path proc ismount*(path: string): bool = Y ismount, path proc samefile*(path1, path2: string): bool = Y samefile, path1, path2 proc sameopenfile*(path1, path2: int): bool = Y sameopenfile, path1, path2 proc normcase*(path: string): string = Y normcase, path proc normpath*(path: string): string = Y normpath, path proc realpath*(path: string): string = Y realpath, path proc relpath*(path: string): string = Y relpath, path proc split*(path: string): tuple[head, tail: string] = Y split, path proc splitdrive*(path: string): tuple[drive, tail: string] = Y splitdrive, path proc splitext*(path: string): tuple[root, ext: string] = Y splitext, path ================================================ FILE: src/cpython/pickle.nim ================================================ ## * https://docs.python.org/3.10/library/pickle.html import nimpy template X(simbol; a): auto = nimpy.pyImport("pickle").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("pickle").simbol(a, b).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("pickle").simbol.to(tipe) HIGHEST_PROTOCOL := int DEFAULT_PROTOCOL := int proc dumps*(obj: auto): string = X dumps, obj proc loads*(bytes_object: string; output_type: typedesc): auto = nimpy.pyImport("pickle").loads(bytes_object).to(output_type) ================================================ FILE: src/cpython/pickletools.nim ================================================ ## * https://docs.python.org/3.10/library/pickletools.html import nimpy proc optimize*(picklestring: string): string = nimpy.pyImport("pickletools").optimize(picklestring).to(string) ================================================ FILE: src/cpython/pkgutil.nim ================================================ ## * https://docs.python.org/3.10/library/pkgutil.html import nimpy proc extend_path*(path, name: string): string = nimpy.pyImport("pkgutil").extend_path(path, name).to(string) ================================================ FILE: src/cpython/posixpath.nim ================================================ ## * https://github.com/python/cpython/blob/main/Lib/posixpath.py ## * You may want to use this because in Python has faster performance compared to `os.path`. import nimpy template X(simbol; a): auto = nimpy.pyImport("posixpath").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("posixpath").simbol(a, b).to(type(result)) proc normcase*(s: string): string = X normcase, s proc isabs*(s: string): bool = X isabs, s proc join*(a, b: string): string = X join, a, b proc splitdrive*(s: string): tuple[drive, path: string] = X splitdrive, s proc split*(s: string): tuple[head, tail: string] = X split, s proc basename*(s: string): string = X basename, s proc dirname*(s: string): string = X basename, s proc commonprefix*(s: seq[string]): string = X commonprefix, s proc getsize*(s: string): int = X getsize, s proc getmtime*(s: string): float = X getmtime, s proc getatime*(s: string): float = X getatime, s proc getctime*(s: string): float = X getctime, s proc islink*(s: string): bool = X islink, s proc exists*(s: string): bool = X exists, s proc lexists*(s: string): bool = X lexists, s proc isdir*(s: string): bool = X isdir, s proc isfile*(s: string): bool = X isfile, s proc ismount*(s: string): bool = X ismount, s proc expanduser*(s: string): string = X expanduser, s proc expandvars*(s: string): string = X expandvars, s proc normpath*(s: string): string = X normpath, s proc abspath*(s: string): string = X abspath, s proc samefile*(path1, path2: string): bool = X samefile, path1, path2 proc relpath*(path, start: string): string = X relpath, path, start ================================================ FILE: src/cpython/pprint.nim ================================================ ## * https://docs.python.org/3.10/library/pprint.html import nimpy template X(simbol; a, b, c, d): auto = nimpy.pyImport("pprint").simbol(a, b, c, d) template X(simbol; a): auto = when declared result: nimpy.pyImport("pprint").simbol(a).to(type(result)) else: discard nimpy.pyImport("pprint").simbol(a) proc pprint*(obj: auto) = X pprint, obj proc isreadable*(obj: auto): bool = X isreadable, obj proc isrecursive*(obj: auto): bool = X isrecursive, obj proc saferepr*(obj: auto): string = X saferepr, obj proc pformat*(obj: auto; indent = 1; width = 80; depth = int.high): string = X pformat, obj, indent, width, depth ================================================ FILE: src/cpython/pwd.nim ================================================ ## * https://docs.python.org/3.10/library/pwd.html import nimpy template X(simbol): auto = nimpy.pyImport("pwd").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("pwd").simbol(a).to(type(result)) proc getpwuid*(uid: int): tuple[pw_name, pw_passwd: string, pw_uid, pw_gid: int, pw_gecos, pw_dir, pw_shell: string] = X getpwuid, uid proc getpwnam*(name: string): tuple[pw_name, pw_passwd: string, pw_uid, pw_gid: int, pw_gecos, pw_dir, pw_shell: string] = X getpwnam, name proc getpwall*(): seq[tuple[pw_name, pw_passwd: string, pw_uid, pw_gid: int, pw_gecos, pw_dir, pw_shell: string]] = X getpwall ================================================ FILE: src/cpython/py_compile.nim ================================================ ## * https://docs.python.org/3.10/library/py_compile.html import nimpy template X(simbol; a): auto = nimpy.pyImport("py_compile").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("py_compile").simbol(a, b).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("py_compile").simbol(a, b, c, d, e).to(type(result)) proc compile*(file, cfile, dfile: string; doraise=false; optimize= -1): string = X compile, file, cfile, dfile, doraise, optimize proc compile*(file, cfile: string): string = X compile, file, cfile proc compile*(file: string): string = X compile, file ================================================ FILE: src/cpython/quopri.nim ================================================ ## * https://docs.python.org/3.10/library/quopri.html import nimpy template X(simbol; a, b): auto = nimpy.pyImport("py_compile").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("py_compile").simbol(a, b, c).to(type(result)) proc decodestring*(s: string; header=false): string = X decodestring, s, header proc encodestring*(s: string; quotetabs=false; header=false): string = X encodestring, s, quotetabs, header ================================================ FILE: src/cpython/random.nim ================================================ ## * https://docs.python.org/3.10/library/random.html import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("random").simbol().to(type(result)) else: discard nimpy.pyImport("random").simbol() template X(simbol; a, b): auto = when declared result: nimpy.pyImport("random").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("random").simbol(a, b) template X(simbol; a): auto = nimpy.pyImport("random").simbol(a).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("random").simbol(a, b, c).to(type(result)) proc seed*() = X seed proc seed*(a: int; version=2) = X seed, a, version proc randbytes*(n: int): string = X randbytes proc randrange*(stop: int): int = X randrange, stop proc randrange*(start, stop: int): int = X randrange, start, stop proc randrange*(start, stop, step: int): int = X randrange, start, stop, step proc randint*(a, b: int): int = X randint, a, b proc getrandbits*(k: int): int = X getrandbits, k proc choice*(sequence: seq[int]): int = X choice, sequence proc choice*(sequence: seq[char]): char = X choice, sequence proc choice*(sequence: seq[bool]): bool = X choice, sequence proc choice*(sequence: seq[float]): float = X choice, sequence proc choice*(sequence: seq[string]): string = X choice, sequence proc sample*(sequence: seq[int]; length: int): seq[int] = X sample, sequence, length proc sample*(sequence: seq[char]; length: int): seq[char] = X sample, sequence, length proc sample*(sequence: seq[bool]; length: int): seq[bool] = X sample, sequence, length proc sample*(sequence: seq[float]; length: int): seq[float] = X sample, sequence, length proc sample*(sequence: seq[string]; length: int): seq[string] = X sample, sequence, length proc random*(): float = X random proc uniform*(a, b: float): float = X uniform, a, b proc uniform*(a, b: int): float = X uniform, a, b proc triangular*(lo, hi, mode: float): float = X triangular, lo, hi, mode proc triangular*(lo, hi, mode: int): float = X triangular, lo, hi, mode proc betavariate*(alpha, beta: float): range[0.0 .. 1.0] = X betavariate, alpha, beta proc betavariate*(alpha, beta: int): range[0.0 .. 1.0] = X betavariate, alpha, beta proc expovariate*(lambd: float): float = X expovariate, lambd proc expovariate*(lambd: int): float = X expovariate, lambd proc gammavariate*(alpha, beta: float): float = X gammavariate, alpha, beta proc gammavariate*(alpha, beta: int): float = X gammavariate, alpha, beta proc gauss*(mu, sigma: float): float = X gammavariate, mu, sigma proc gauss*(mu, sigma: int): float = X gammavariate, mu, sigma proc lognormvariate*(mu, sigma: float): float = X lognormvariate, mu, sigma proc lognormvariate*(mu, sigma: int): float = X lognormvariate, mu, sigma proc normalvariate*(mu, sigma: float): float = X normalvariate, mu, sigma proc normalvariate*(mu, sigma: int): float = X normalvariate, mu, sigma proc vonmisesvariate*(mu, kappa: float): float = X vonmisesvariate, mu, kappa proc vonmisesvariate*(mu, kappa: int): float = X vonmisesvariate, mu, kappa proc paretovariate*(alpha: float): float = X paretovariate, alpha proc paretovariate*(alpha: int): float = X paretovariate, alpha proc weibullvariate*(alpha: float): float = X weibullvariate, alpha proc weibullvariate*(alpha: int): float = X weibullvariate, alpha ================================================ FILE: src/cpython/re.nim ================================================ ## * https://docs.python.org/3.10/library/re.html import nimpy template X(simbol) = discard nimpy.pyImport("re").simbol() template X(simbol; a): auto = nimpy.pyImport("re").simbol(a).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("re").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("re").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("re").simbol(a, b, c, d, e).to(type(result)) proc split*(pattern, str: string; maxsplit = 0, flags = 0): seq[string] = X split, pattern, str, maxsplit, flags proc findall*(pattern, str: string; flags = 0): seq[string] = X findall, pattern, str, flags proc sub*(pattern, repl, str: string, count=0, flags=0): string = X sub, pattern, repl, str, count, flags proc subn*(pattern, replacement: string; count=0, flags=0): tuple[new_string: string, number_of_subs_made: int] = X subn, pattern, replacement, count, flags proc escape*(pattern: string): string = X escape, pattern proc purge*() = X purge ================================================ FILE: src/cpython/readline.nim ================================================ ## * https://docs.python.org/3.10/library/readline.html import nimpy template X(simbol) = discard nimpy.pyImport("readline").simbol() template X(simbol; a, b, c): auto = nimpy.pyImport("readline").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d, e, f) = discard nimpy.pyImport("readline").simbol(a, b, c, d, e, f) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("readline").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("readline").simbol(a, b) template X(simbol; a): auto = when declared result: nimpy.pyImport("readline").simbol(a).to(type(result)) else: discard nimpy.pyImport("readline").simbol(a) proc redisplay*() = X redisplay proc get_line_buffer*(): string = X get_line_buffer proc parse_and_bind*(str: string) = X parse_and_bind, str proc read_init_file*(filename: string) = X parse_and_bind, filename proc insert_text*(str: string) = X insert_text, str proc read_history_file*(filename: string) = X read_history_file, filename proc write_history_file*(filename: string) = X write_history_file, filename proc get_history_length*(): int = X get_history_length proc set_history_length*(length: int) = X set_history_length, length proc clear_history*() = X clear_history proc get_current_history_length*(): int = X get_current_history_length proc get_history_item*(index: int): string = X get_history_item, index proc remove_history_item*(pos: int): string = X remove_history_item, pos proc replace_history_item*(pos: int; line: string) = X replace_history_item, pos, line proc add_history*(line: string) = X add_history, line proc set_auto_history*(enabled: bool) = X set_auto_history, enabled proc set_startup_hook*(function: auto) = X set_startup_hook, function proc set_pre_input_hook*(function: auto) = X set_pre_input_hook, function proc set_completer*(function: auto) = X set_completer, function proc get_completion_type*(): int = X get_completion_type proc get_begidx*(): int = X get_begidx proc get_endidx*(): int = X get_endidx proc set_completer_delims*(str: string) = X set_completer_delims, str proc get_completer_delims*(): string = X get_completer_delims proc append_history_file*(nelements: seq[string]) = X append_history_file, nelements proc set_completion_display_matches_hook*(function: auto) = X set_completion_display_matches_hook, function proc append_history_file*(nelements: seq[string]; filename: string) = X append_history_file, nelements, filename ================================================ FILE: src/cpython/reprlib.nim ================================================ ## * https://docs.python.org/3.10/library/reprlib.html import nimpy proc repr*(obj: auto): string = nimpy.pyImport("reprlib").repr(obj).to(string) ================================================ FILE: src/cpython/resource.nim ================================================ ## * https://docs.python.org/3.10/library/resource.html import nimpy template X(simbol): auto = nimpy.pyImport("resource").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("resource").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("resource").simbol(a, b).to(type(result)) template X(simbol; a, b, c) = discard nimpy.pyImport("resource").simbol(a, b, c) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("resource").simbol.to(tipe) RLIM_INFINITY := int RLIMIT_CORE := int RLIMIT_CPU := int RLIMIT_FSIZE := int RLIMIT_DATA := int RLIMIT_STACK := int RLIMIT_RSS := int RLIMIT_NPROC := int RLIMIT_NOFILE := int RLIMIT_OFILE := int RLIMIT_MEMLOCK := int RLIMIT_VMEM := int RLIMIT_AS := int RLIMIT_MSGQUEUE := int RLIMIT_NICE := int RLIMIT_RTPRIO := int RLIMIT_RTTIME := int RLIMIT_SIGPENDING := int RLIMIT_SBSIZE := int RLIMIT_SWAP := int RLIMIT_NPTS := int RLIMIT_KQUEUES := int RUSAGE_SELF := int RUSAGE_CHILDREN := int RUSAGE_BOTH := int RUSAGE_THREAD := int proc getpagesize*(): int = X getpagesize proc prlimit*(pid: int; resource: auto; limits: tuple[soft, hard: int]) = X prlimit, pid, resource, limits proc prlimit*(pid: int; resource: auto) = X prlimit, pid, resource proc getrlimit*(resource: auto): tuple[soft, hard: int] = X getrlimit, resource proc setrlimit*(resource: auto; limits: tuple[soft, hard: int]) = X setrlimit, resource, limits proc getrusage*(who: int): tuple[ru_utime, ru_stime: float; ru_maxrss, ru_ixrss, ru_idrss, ru_isrss, ru_minflt, ru_majflt, ru_nswap, ru_inblock, ru_oublock, ru_msgsnd, ru_msgrcv, ru_nsignals, ru_nvcsw, ru_nivcsw: int] = X getrusage, who ================================================ FILE: src/cpython/runpy.nim ================================================ ## * https://docs.python.org/3.10/library/runpy.html import nimpy template X(simbol) = discard nimpy.pyImport("runpy").simbol(module_name) proc run_module*(module_name: string) = X run_module proc run_path*(module_name: string) = X run_path ================================================ FILE: src/cpython/secrets.nim ================================================ ## * https://docs.python.org/3.10/library/secrets.html import nimpy const module = "secrets" template X(simbol): auto = when declared result: pyImport(module).simbol().to(type(result)) else: discard pyImport(module).simbol() template X(simbol; a): auto = when declared result: pyImport(module).simbol(a).to(type(result)) else: discard pyImport(module).simbol(a) template X(simbol; a, b): auto = when declared result: pyImport(module).simbol(a, b).to(type(result)) else: discard pyImport(module).simbol(a, b) proc randbelow*(n: int): int = X randbelow, n proc randbits*(k: int): int = X randbits, k proc choice*(sequence: seq[int]): int = X choice, sequence proc choice*(sequence: seq[char]): char = X choice, sequence proc choice*(sequence: seq[bool]): bool = X choice, sequence proc choice*(sequence: seq[float]): float = X choice, sequence proc choice*(sequence: seq[string]): string = X choice, sequence proc token_bytes*(number_of_bytes: int): string = X token_bytes, number_of_bytes proc token_bytes*(): string = X token_bytes proc token_hex*(number_of_bytes: int): string = X token_hex, number_of_bytes proc token_hex*(): string = X token_hex proc token_urlsafe*(number_of_bytes: int): string = X token_urlsafe, number_of_bytes proc token_urlsafe*(): string = X token_urlsafe proc compare_digest*(digestA, digestB: string): bool = X compare_digest, digestA, digestB ================================================ FILE: src/cpython/shutil.nim ================================================ ## * https://docs.python.org/3.10/library/shutil.html import nimpy const module = "shutil" template X(simbol): auto = when declared result: pyImport(module).simbol().to(type(result)) else: discard pyImport(module).simbol() template X(simbol; a): auto = when declared result: pyImport(module).simbol(a).to(type(result)) else: discard pyImport(module).simbol(a) template X(simbol; a, b): auto = when declared result: pyImport(module).simbol(a, b).to(type(result)) else: discard pyImport(module).simbol(a, b) template X(simbol; a, b, c): auto = when declared result: pyImport(module).simbol(a, b, c).to(type(result)) else: discard pyImport(module).simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: pyImport(module).simbol(a, b, c, d).to(type(result)) else: discard pyImport(module).simbol(a, b, c, d) template X(simbol; a, b, c, d, e, f): auto = when declared result: pyImport(module).simbol(a, b, c, d, e, f).to(type(result)) else: discard pyImport(module).simbol(a, b, c, d, e, f) proc copyfile*(source, destination: string) = X copyfile, source, destination proc copymode*(source, destination: string) = X copymode, source, destination proc copystat*(source, destination: string) = X copystat, source, destination proc copy*(source, destination: string) = X copy, source, destination proc copy2*(source, destination: string) = X copy2, source, destination proc move*(source, destination: string) = X move, source, destination proc chown*(path: string; uid: int) = X chown, path, uid proc chown*(path: string; username: string) = X chown, path, username proc rmtree*(path: string; ignore_errors=false) = X rmtree, path, ignore_errors proc copytree*(source, destination: string; symlinks=false): string = X copytree, source, destination, symlinks proc disk_usage*(path: string): tuple[total, used, free: BiggestUInt] = X disk_usage, path proc which*(cmd: string): string = X which, cmd proc make_archive*(base_name, formats: string) = X make_archive, base_name, formats proc make_archive*(base_name, formats, root_dir: string) = X make_archive, base_name, formats, root_dir proc make_archive*(base_name, formats, root_dir, base_dir: string) = X make_archive, base_name, formats, root_dir, base_dir proc make_archive*(base_name, formats, root_dir, base_dir: string; verbose, dry_run: bool) = X make_archive, base_name, formats, root_dir, base_dir, verbose, dry_run proc get_archive_formats*(): seq[tuple[name, description: string]] = X get_archive_formats proc unregister_archive_format*(name: string) = X unregister_archive_format, name proc unpack_archive*(filename, extract_dir, format: string) = X unpack_archive, filename, extract_dir, format proc unpack_archive*(filename, extract_dir: string) = X unpack_archive, filename, extract_dir proc unpack_archive*(filename: string) = X unpack_archive, filename proc unregister_unpack_format*(name: string) = X unregister_unpack_format, name proc get_unpack_formats*(): seq[tuple[name: string, extensions: seq[string], description: string]] = X get_unpack_formats proc get_terminal_size*(fallback: array[2, int] = [80, 24]): tuple[columns, lines: int] = X get_terminal_size, fallback ================================================ FILE: src/cpython/signal.nim ================================================ ## * https://docs.python.org/3.10/library/signal.html import nimpy template X(simbol) = discard nimpy.pyImport("signal").simbol() template X(simbol; a, b) = discard nimpy.pyImport("signal").simbol(a, b) template X(simbol; a, b, c) = discard nimpy.pyImport("signal").simbol(a, b, c) template X(simbol; a): auto = when declared result: nimpy.pyImport("signal").simbol(a).to(type(result)) else: discard nimpy.pyImport("signal").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("signal").simbol.to(tipe) NSIG := int ITIMER_REAL := int ITIMER_VIRTUAL := int ITIMER_PROF := int proc alarm*(time: int) = X alarm, time proc strsignal*(signalnum: int): string = X strsignal, signalnum proc pause*() = X pause proc raise_signal*(signum: int) = X raise_signal, signum proc pidfd_send_signal*(pidfd, sig: int) = X pidfd_send_signal, pidfd, sig proc pthread_kill*(thread_id, signalnum: int) = X pthread_kill, thread_id, signalnum proc pthread_sigmask*(how, mask: int) = X pthread_sigmask, how, mask proc set_wakeup_fd*(fd: int): int = X set_wakeup_fd, fd proc getitimer*(which: auto) = X getitimer, which proc siginterrupt*(signalnum: int; flag: bool) = X siginterrupt, signalnum, flag proc setitimer*(which: auto; seconds: int or float; interval: int or float = 0.0) = X setitimer, which, seconds, interval ================================================ FILE: src/cpython/site.nim ================================================ ## * https://docs.python.org/3.10/library/site.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("site").simbol(a, b) template X(simbol): auto = when declared result: nimpy.pyImport("site").simbol().to(type(result)) else: discard nimpy.pyImport("site").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("site").simbol(a).to(type(result)) else: discard nimpy.pyImport("site").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("site").simbol.to(tipe) PREFIXES := seq[string] ENABLE_USER_SITE := bool USER_SITE := string USER_BASE := string proc main*() = X main proc addsitedir*(sitedir: string) = X addsitedir, sitedir proc addsitedir*(sitedir: string; known_paths: seq[string]) = X addsitedir, sitedir, known_paths proc getsitepackages*(): seq[string] = X getsitepackages proc getuserbase*(): string = X getuserbase proc getusersitepackages*(): string = X getuserbase ================================================ FILE: src/cpython/sndhdr.nim ================================================ ## * https://docs.python.org/3.10/library/sndhdr.html import nimpy template X(simbol; a): auto = nimpy.pyImport("sndhdr").simbol(a).to(type(result)) proc what*(filename: string): tuple[filetype: string; framerate, nchannels, nframes, sampwidth: int] = X what, filename proc whathdr*(filename: string): tuple[filetype: string; framerate, nchannels, nframes, sampwidth: int] = X whathdr, filename ================================================ FILE: src/cpython/spwd.nim ================================================ ## * https://docs.python.org/3.10/library/spwd.html import nimpy template X(simbol): auto = nimpy.pyImport("spwd").simbol().to(type(result)) template X(simbol; a): auto = nimpy.pyImport("spwd").simbol(a).to(type(result)) proc getspnam*(name: string): tuple[sp_namp, sp_pwdp: string; sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag: int] = X getspnam, name proc getspall*(): seq[tuple[sp_namp, sp_pwdp: string; sp_lstchg, sp_min, sp_max, sp_warn, sp_inact, sp_expire, sp_flag: int]] = X getspall ================================================ FILE: src/cpython/ssl.nim ================================================ ## * https://docs.python.org/3.10/library/ssl.html import nimpy template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("ssl").simbol.to(tipe) SSL_ERROR_ZERO_RETURN := int SSL_ERROR_WANT_READ := int SSL_ERROR_WANT_WRITE := int SSL_ERROR_WANT_X509_LOOKUP := int SSL_ERROR_SYSCALL := int SSL_ERROR_SSL := int SSL_ERROR_WANT_CONNECT := int SSL_ERROR_EOF := int SSL_ERROR_INVALID_ERROR_CODE := int OPENSSL_VERSION_NUMBER := int OPENSSL_VERSION := string ================================================ FILE: src/cpython/statistics.nim ================================================ ## * https://docs.python.org/3.10/library/statistics.html from std/os import splitFile import nimpy let module = nimpy.pyImport(static(currentSourcePath().splitFile.name)) template X(simbol): auto = when declared result: module.simbol().to(type(result)) else: discard module.simbol() template X(simbol; a): auto = when declared result: module.simbol(a).to(type(result)) else: discard module.simbol(a) template X(simbol; a, b): auto = when declared result: module.simbol(a, b).to(type(result)) else: discard module.simbol(a, b) template X(simbol; a, b, c): auto = when declared result: module.simbol(a, b, c).to(type(result)) else: discard module.simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: module.simbol(a, b, c, d).to(type(result)) else: discard module.simbol(a, b, c, d) template X(simbol; a, b, c, d, e): auto = when declared result: module.simbol(a, b, c, d, e).to(type(result)) else: discard module.simbol(a, b, c, d, e) template X(simbol; a, b, c, d, e, f): auto = when declared result: module.simbol(a, b, c, d, e, f).to(type(result)) else: discard module.simbol(a, b, c, d, e, f) template X(simbol; a, b, c, d, e, f, g): auto = when declared result: module.simbol(a, b, c, d, e, f, g).to(type(result)) else: discard module.simbol(a, b, c, d, e, f, g) template X(simbol; a, b, c, d, e, f, g, h): auto = when declared result: module.simbol(a, b, c, d, e, f, g, h).to(type(result)) else: discard module.simbol(a, b, c, d, e, f, g, h) proc median_low*(data: seq[int]): int = X median_low, data proc median_low*(data: seq[float]): float = X median_low, data proc median_high*(data: seq[int]): int = X median_high, data proc median_high*(data: seq[float]): float = X median_high, data proc mode*(sequence: seq[int]): int = X mode, sequence proc mode*(sequence: seq[char]): char = X mode, sequence proc mode*(sequence: seq[bool]): bool = X mode, sequence proc mode*(sequence: seq[float]): float = X mode, sequence proc mode*(sequence: seq[string]): string = X mode, sequence proc multimode*(sequence: seq[int]): int = X multimode, sequence proc multimode*(sequence: seq[char]): char = X multimode, sequence proc multimode*(sequence: seq[bool]): bool = X multimode, sequence proc multimode*(sequence: seq[float]): float = X multimode, sequence proc multimode*(sequence: seq[string]): string = X multimode, sequence proc mean*(data: seq[int] or seq[float]): float = X mean, data proc fmean*(data: seq[int] or seq[float]): float = X fmean, data proc median*(data: seq[int] or seq[float]): float = X median, data proc pstdev*(data: seq[int] or seq[float]): float = X pstdev, data proc pvariance*(data: seq[int] or seq[float]): float = X pvariance, data proc stdev*(data: seq[int] or seq[float]): float = X stdev, data proc variance*(data: seq[int] or seq[float]): float = X variance, data proc quantiles*(data: seq[int] or seq[float]): float = X quantiles, data proc covariance*(data: seq[int] or seq[float]): float = X covariance, data proc correlation*(data: seq[int] or seq[float]): float = X correlation, data proc geometric_mean*(data: seq[int] or seq[float]): float = X geometric_mean, data proc harmonic_mean*(data: seq[int] or seq[float]): float = X harmonic_mean, data proc linear_regression*(data: seq[int] or seq[float]): tuple[slope, intercept: float] = X linear_regression, data proc median_grouped*(data: seq[int] or seq[float]; interval = 1): float = X median_grouped, data, interval proc harmonic_mean*(data: seq[int] or seq[float]; weights: seq[int]): float = X harmonic_mean, data, weights ================================================ FILE: src/cpython/stringprep.nim ================================================ ## https://docs.python.org/3.12/library/stringprep.html import nimpy template X(simbol): bool = nimpy.pyImport("stringprep").simbol(s).to(bool) proc in_table_a1*(s: string): bool = X in_table_a1 proc in_table_b1*(s: string): bool = X in_table_b1 proc in_table_c11*(s: string): bool = X in_table_c11 proc in_table_c12*(s: string): bool = X in_table_c12 proc in_table_c11_c12*(s: string): bool = X in_table_c11_c12 proc in_table_c21*(s: string): bool = X in_table_c21 proc in_table_c22*(s: string): bool = X in_table_c22 proc in_table_c21_c22*(s: string): bool = X in_table_c21_c22 proc in_table_c3*(s: string): bool = X in_table_c3 proc in_table_c4*(s: string): bool = X in_table_c4 proc in_table_c5*(s: string): bool = X in_table_c5 proc in_table_c6*(s: string): bool = X in_table_c6 proc in_table_c7*(s: string): bool = X in_table_c7 proc in_table_c8*(s: string): bool = X in_table_c8 proc in_table_c9*(s: string): bool = X in_table_c9 proc in_table_d1*(s: string): bool = X in_table_d1 proc in_table_d2*(s: string): bool = X in_table_d2 ================================================ FILE: src/cpython/strings.nim ================================================ ## https://docs.python.org/3.12/library/string.html import nimpy type Template* = nimpy.PyObject template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("string").simbol.to(tipe) ascii_letters := string ascii_lowercase := string ascii_uppercase := string digits := string hexdigits := string octdigits := string punctuation := string printable := string whitespace := string proc newTemplate*(s: string): Template = nimpy.pyImport("string").Template(s) proc capwords*(s: string): string = nimpy.pyImport("string").capwords.to(type(result)) # runnableExamples"-r:off": # let s = newTemplate("$who likes $what") # echo s.substitute(who = "Everybody", what = "cats") # "Everybody likes cats" # echo s.safe_substitute(who = "Everybody", what = "cats") # "Everybody likes cats" ================================================ FILE: src/cpython/struct.nim ================================================ ## * https://docs.python.org/3.10/library/struct.html import nimpy template X(simbol; a): auto = nimpy.pyImport("struct").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("struct").simbol(a, b).to(type(result)) template X(simbol; a, b, c) = discard nimpy.pyImport("struct").simbol(a, b, c) template X(simbol; a, b, c, d): auto = nimpy.pyImport("struct").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("struct").simbol(a, b, c, d, e).to(type(result)) proc calcsize*(format: string): int = X calcsize, format proc unpack*(format, buffer: string): string = X unpack, format, buffer proc unpack_from*(format, buffer: string; offset=0) = X unpack_from, format, buffer, offset proc pack*(format: string; v1, v2, v3: int): string = X pack, format, v1, v2, v3 when false: # Nimpy does not like varargs ?. proc pack*(format: string; values: varargs[auto]): string = X pack, format, values proc pack_into*(format: string; buffer: var string; offset: int; values: varargs[auto]) = X pack_into, format, buffer, offset, values ================================================ FILE: src/cpython/subprocess.nim ================================================ ## * https://docs.python.org/3.10/library/subprocess.html import nimpy template X(simbol; a): auto = nimpy.pyImport("subprocess").simbol(a).to(type(result)) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("subprocess").simbol.to(tipe) DEVNULL := int PIPE := int STDOUT := int proc call(args: seq[string] or string): int = X call, args proc check_call(args: seq[string] or string): int = X check_call, args proc getoutput(args: seq[string] or string): string = X getoutput, args proc check_output(args: seq[string] or string): string = X check_output, args proc getstatusoutput(args: seq[string] or string): tuple[exitcode: int; output: string] = X getstatusoutput, args proc run*(args: seq[string] or string): tuple[args: seq[string], returncode: int, stdout: string, stderr: string] = let x = nimpy.pyImport("subprocess").run(args) result = (args: x.args.to(seq[string]), returncode: x.returncode.to(int), stdout: x.stdout.to(string), stderr: x.stderr.to(string)) ================================================ FILE: src/cpython/sys.nim ================================================ ## * https://docs.python.org/3.10/library/sys.html import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("sys").simbol().to(type(result)) else: discard nimpy.pyImport("sys").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("sys").simbol(a).to(type(result)) else: discard nimpy.pyImport("sys").simbol(a) template X(simbol; a, b): auto = nimpy.pyImport("sys").simbol(a, b).to(type(result)) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("sys").simbol.to(tipe) abiflags := string base_exec_prefix := string base_prefix := string byteorder := string copyright := string pycache_prefix := string exec_prefix := string executable := string float_repr_style := string platform := string platlibdir := string prefix := string ps1 := string ps2 := string version := string winver := string dllhandle := int hexversion := int maxunicode := int tracebacklimit := int api_version := int maxsize := BiggestInt dont_write_bytecode := bool builtin_module_names := seq[string] argv := seq[string] orig_argv := seq[string] path := seq[string] flags := tuple[debug, inspect, interactive, optimize, dont_write_bytecode, no_user_site, no_site, ignore_environment, verbose, bytes_warning, quiet, hash_randomization, isolated: int; dev_mode: bool; utf8_mode: int] float_info := tuple[max: float; max_exp, max_10_exp: int; min: float; min_exp, min_10_exp, dig, mant_dig: int; epsilon: float; radix, rounds: int] hash_info := tuple[width, modulus, inf, nan, imag: int; algorithm: string; hash_bits, seed_bits, cutoff: int] int_info := tuple[bits_per_digit, sizeof_digit: int] thread_info := tuple[name, lock, version: string] version_info := tuple[major, minor, micro: int; releaselevel: string; serial: int] proc breakpointhook*() = X breakpointhook proc displayhook*(value: auto) = X displayhook, value proc exit*(arg = 0) = X exit proc getallocatedblocks*(): int = X getallocatedblocks proc getandroidapilevel*(): int = X getandroidapilevel proc getdefaultencoding*(): string = X getdefaultencoding proc getdlopenflags*(): int = X getdlopenflags proc getfilesystemencoding*(): string = X getfilesystemencoding proc getfilesystemencodeerrors*(): string = X getfilesystemencodeerrors proc getrefcount*(obj: auto): int = X getrefcount, obj proc getrecursionlimit*(obj: auto): int = X getrecursionlimit, obj proc getsizeof*(obj: auto): int = X getsizeof, obj proc getsizeof*(obj: auto; default: int): int = X getsizeof, obj, default proc getswitchinterval*(): float = X getswitchinterval proc get_coroutine_origin_tracking_depth*(): int = X get_coroutine_origin_tracking_depth proc intern*(str: string): string = X intern, str proc is_finalizing*(): bool = X is_finalizing proc setdlopenflags*(n: int) = X setdlopenflags, n proc setrecursionlimit*(limit: int) = X setrecursionlimit, limit proc setswitchinterval*(interval: int) = X setswitchinterval, interval proc set_coroutine_origin_tracking_depth*(depth: int) = X set_coroutine_origin_tracking_depth, depth ================================================ FILE: src/cpython/sysconfig.nim ================================================ ## * https://docs.python.org/3.10/library/sysconfig.html import nimpy template X(simbol; a): auto = nimpy.pyImport("sysconfig").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("sysconfig").simbol(a, b).to(type(result)) template X(simbol): auto = when declared result: nimpy.pyImport("sysconfig").simbol().to(type(result)) else: discard nimpy.pyImport("sysconfig").simbol() proc get_config_vars*(value: varargs[string]): seq[string] = X get_config_vars, value proc get_config_var*(value: string): string = X get_config_var, value proc get_scheme_names*(): seq[string] = X get_scheme_names proc get_default_scheme*(): string = X get_default_scheme proc get_preferred_scheme*(key: string): string = X get_preferred_scheme, key proc get_path_names*(): seq[string] = X get_path_names proc get_path*(name, scheme: string): string = X get_path, name, scheme proc get_path*(name: string): string = X get_path, name proc get_python_version*(): string = X get_python_version proc get_platform*(): string = X get_platform proc is_python_build*(): bool = X is_python_build proc get_config_h_filename*(): string = X get_config_h_filename proc get_makefile_filename*(): string = X get_makefile_filename ================================================ FILE: src/cpython/syslog.nim ================================================ ## * https://docs.python.org/3.10/library/syslog.html import nimpy template X(simbol) = discard nimpy.pyImport("syslog").simbol() template X(simbol; a) = discard nimpy.pyImport("syslog").simbol(a) template X(simbol; a, b) = discard nimpy.pyImport("syslog").simbol(a, b) template X(simbol; a, b, c) = discard nimpy.pyImport("syslog").simbol(a, b, c) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("syslog").simbol.to(tipe) LOG_EMERG := int LOG_ALERT := int LOG_CRIT := int LOG_ERR := int LOG_WARNING := int LOG_NOTICE := int LOG_INFO := int LOG_DEBUG := int LOG_USER := int LOG_MAIL := int LOG_DAEMON := int LOG_AUTH := int LOG_LPR := int LOG_NEWS := int LOG_UUCP := int LOG_CRON := int LOG_SYSLOG := int LOG_LOCAL0 := int LOG_LOCAL7 := int LOG_AUTHPRIV := int LOG_PID := int LOG_CONS := int LOG_NDELAY := int LOG_ODELAY := int LOG_NOWAIT := int LOG_PERROR := int proc closelog*() = X closelog proc openlog*() = X openlog proc syslog*(message: string) = X syslog, message proc syslog*(priority, message: string) = X syslog, priority, message proc openlog*(idents: string) = X openlog, idents proc openlog*(idents: string; logoption: int) = X openlog, idents, logoption proc openlog*(idents: string; logoption: int; facility: string) = X openlog, idents, logoption, facility ================================================ FILE: src/cpython/tabnanny.nim ================================================ ## * https://docs.python.org/3.10/library/tabnanny.html import nimpy template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("tabnanny").simbol.to(tipe) verbose := bool filename_only := bool proc check*(file_or_dir: string) = discard nimpy.pyImport("tabnanny").check(file_or_dir) ================================================ FILE: src/cpython/tempfile.nim ================================================ ## * https://docs.python.org/3.10/library/tempfile.html import nimpy template X(simbol): auto = nimpy.pyImport("tempfile").simbol().to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("tempfile").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("tempfile").simbol(a, b, c).to(type(result)) proc mkdtemp*(): string = X mkdtemp proc mkdtemp*(suffix, prefix: string): string = X mkdtemp, suffix, prefix proc mkdtemp*(suffix, prefix, dir: string): string = X mkdtemp, suffix, prefix, dir proc mktemp*(): string = X mktemp proc mktemp*(suffix, prefix: string): string = X mktemp, suffix, prefix proc mktemp*(suffix, prefix, dir: string): string = X mktemp, suffix, prefix, dir proc gettempdir*(): string = X gettempdir proc gettempdirb*(): string = X gettempdirb proc gettempprefix*(): string = X gettempprefix proc gettempprefixb*(): string = X gettempprefixb ================================================ FILE: src/cpython/termios.nim ================================================ ## * https://docs.python.org/3.10/library/termios.html import nimpy template X(simbol; a) = discard nimpy.pyImport("termios").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("termios").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("termios").simbol(a, b) proc tcgetattr*(fd: int): tuple[iflag, oflag, cflag, lflag, ispeed, ospeed: int; cc: seq[string]] = X tcgetattr, fd proc tcsendbreak*(fd, duration: int) = X tcsendbreak, fd, duration proc tcdrain*(fd: int) = X tcdrain, fd ================================================ FILE: src/cpython/textwrap.nim ================================================ ## * https://docs.python.org/3.10/library/textwrap.html import nimpy type TextWrapper* = nimpy.PyObject template X(simbol; a): auto = nimpy.pyImport("textwrap").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("textwrap").simbol(a, b).to(type(result)) proc wrap*(text: string; width = 70): string = X wrap, text, width proc fill*(text: string; width = 70): string = X fill, text, width proc dedent*(text: string): string = X dedent, text proc indent*(text, prefix: string): string = X indent, text, prefix proc indent*(text: string): string = X indent, text proc shorten*(text: string; width: int): string = X shorten, text, width proc newTextWrapper*(): TextWrapper = nimpy.pyImport("textwrap").TextWrapper() ================================================ FILE: src/cpython/timeit.nim ================================================ ## * https://docs.python.org/3.10/library/timeit.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("timeit").simbol(a, b) proc timeit*(stmts = "pass", setup = "pass") = X timeit, stmts, setup proc repeat*(stmts = "pass", setup = "pass") = X repeat, stmts, setup ================================================ FILE: src/cpython/token.nim ================================================ ## * https://docs.python.org/3.10/library/token.html import nimpy template X(simbol): auto = nimpy.pyImport("token").simbol(x).to(type(result)) template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("token").simbol.to(tipe) ENDMARKER := int NAME := int NUMBER := int STRING := int NEWLINE := int INDENT := int DEDENT := int LPAR := int RPAR := int LSQB := int RSQB := int COLON := int COMMA := int SEMI := int PLUS := int MINUS := int STAR := int SLASH := int VBAR := int AMPER := int LESS := int GREATER := int EQUAL := int DOT := int PERCENT := int LBRACE := int RBRACE := int EQEQUAL := int NOTEQUAL := int LESSEQUAL := int GREATEREQUAL := int TILDE := int CIRCUMFLEX := int LEFTSHIFT := int RIGHTSHIFT := int DOUBLESTAR := int PLUSEQUAL := int MINEQUAL := int STAREQUAL := int SLASHEQUAL := int PERCENTEQUAL := int AMPEREQUAL := int VBAREQUAL := int CIRCUMFLEXEQUAL := int LEFTSHIFTEQUAL := int RIGHTSHIFTEQUAL := int DOUBLESTAREQUAL := int DOUBLESLASH := int DOUBLESLASHEQUAL := int AT := int ATEQUAL := int RARROW := int ELLIPSIS := int COLONEQUAL := int OP := int AWAIT := int ASYNC := int TYPE_IGNORE := int TYPE_COMMENT := int SOFT_KEYWORD := int ERRORTOKEN := int N_TOKENS := int NT_OFFSET := int COMMENT := int NL := int ENCODING := int proc ISTERMINAL*(x: auto): bool = X ISTERMINAL proc ISNONTERMINAL*(x: auto): bool = X ISNONTERMINAL proc ISEOF*(x: auto): bool = X ISEOF ================================================ FILE: src/cpython/tomllib.nim ================================================ ## https://docs.python.org/3.12/library/tomllib.html import std/tables import nimpy proc loads*(s: string): Table[string, string] = nimpy.pyImport("tomllib").loads(s).to(type(result)) ================================================ FILE: src/cpython/tty.nim ================================================ ## * https://docs.python.org/3.10/library/tty.html import nimpy template X(simbol) = discard nimpy.pyImport("tty").simbol(fd) proc setraw*(fd: int) = X setraw proc setcbreak*(fd: int) = X setcbreak ================================================ FILE: src/cpython/turtle.nim ================================================ ## * https://docs.python.org/3.10/library/turtle.html ## ## .. raw:: html ## ## ## .. code-block:: nim ## import cpython/turtle ## ## title "Nim Turtle" ## shape "turtle" ## shapesize 2, 2, 8 ## color "green", "yellow" ## speed "fast" ## beginFill() ## ## while true: ## forward 200 ## left 170 ## if position() < (1.0, 1.0): ## break ## ## endFill() ## mainLoop() ## ## .. image:: https://docs.python.org/3.10/_images/turtle-star.png import nimpy template X(simbol): auto = when declared result: nimpy.pyImport("turtle").simbol().to(type(result)) else: discard nimpy.pyImport("turtle").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("turtle").simbol(a).to(type(result)) else: discard nimpy.pyImport("turtle").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("turtle").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("turtle").simbol(a, b) template X(simbol; a, b, c): auto = when declared result: nimpy.pyImport("turtle").simbol(a, b, c).to(type(result)) else: discard nimpy.pyImport("turtle").simbol(a, b, c) template X(simbol; a, b, c, d): auto = when declared result: nimpy.pyImport("turtle").simbol(a, b, c, d).to(type(result)) else: discard nimpy.pyImport("turtle").simbol(a, b, c, d) template X(simbol; a, b, c, d, e): auto = when declared result: nimpy.pyImport("turtle").simbol(a, b, c, d, e).to(type(result)) else: discard nimpy.pyImport("turtle").simbol(a, b, c, d, e) proc forward*(distance: int) = X forward, distance proc forward*(distance: float) = X forward, distance proc backward*(distance: int) = X backward, distance proc backward*(distance: float) = X backward, distance proc right*(angle: int) = X right, angle proc right*(angle: float) = X right, angle proc left*(angle: int) = X left, angle proc left*(angle: float) = X left, angle proc setposition*(x, y: int) = X setposition, x, y proc setposition*(x, y: float) = X setposition, x, y proc goto*(x, y: int) = X goto, x, y proc goto*(x, y: float) = X goto, x, y proc setx*(x: int) = X setx, x proc setx*(x: float) = X setx, x proc sety*(y: int) = X sety, y proc sety*(y: float) = X sety, y proc xcor*(): float = X xcor proc ycor*(): float = X ycor proc home*() = X home proc stamp*(): int = X stamp proc undo*() = X undo proc radians*(): float = X radians proc pendown*(): int = X pendown proc penup*(): int = X penup proc pensize*(): int = X pensize proc pensize*(width: int) = X pensize, width proc speed*(sped: range[0..10]) = X speed, sped proc speed*(sped: string) = X speed, sped proc begin_fill*() = X begin_fill proc end_fill*() = X end_fill proc speed*(): int = X speed proc reset*() = X reset proc clear*() = X clear proc hideturtle*() = X hideturtle proc showturtle*() = X showturtle proc isvisible*(): bool = X isvisible proc isdown*(): bool = X isdown proc filling*(): bool = X filling proc clearstamps*() = X clearstamps proc clearstamp*(stampid: int) = X clearstamp, stampid proc circle*(radius: int) = X circle, radius proc circle*(radius: float) = X circle, radius proc shape*(name: string) = X shape, name proc shape*(): string = X shape proc shearfactor*(shear: int) = X shearfactor, shear proc shearfactor*(shear: float) = X shearfactor, shear proc shearfactor*(): float = X shearfactor proc tilt*(angle: int) = X tilt, angle proc tilt*(angle: float) = X tilt, angle proc tiltangle*(angle: int) = X tiltangle, angle proc tiltangle*(angle: float) = X tiltangle, angle proc begin_poly*() = X begin_poly proc end_poly*() = X end_poly proc setundobuffer*(size: int) = X setundobuffer, size proc setundobuffer*() = X setundobuffer proc bgpic*(picname: string) = X bgpic, picname proc bgpic*(): string = X bgpic proc clearscreen*(): bool = X clearscreen proc resetscreen*(): bool = X resetscreen proc delay*(delai: int) = X delay, delai proc delay*(delai: float) = X delay, delai proc delay*(): float = X delay proc tracer*(n, delai: int) = X tracer, n, delai proc tracer*(n, delai: float) = X tracer, n, delai proc tracer*(): float = X tracer proc update*() = X update proc mainloop*() = X mainloop proc mode*(modes: string) = X mode, modes proc mode*(): string = X mode proc colormode*(cmode: int) = X colormode, cmode proc colormode*(cmode: float) = X colormode, cmode proc getshapes*(): seq[string] = X getshapes proc window_height*(): int = X window_height proc window_width*(): int = X window_width proc bye*() = X bye proc exitonclick*() = X exitonclick proc settiltangle*(angle: float) = X settiltangle, angle proc setheading*(to_angle: int) = X setheading, to_angle proc setheading*(to_angle: float) = X setheading, to_angle proc towards*(x, y: float): float = X towards, x, y proc towards*(x, y: int): float = X towards, x, y proc distance*(x, y: int): float = X distance, x, y proc distance*(x, y: float): float = X distance, x, y proc degrees*(fullcircle = 360.0) = X degrees, fullcircle proc write*(arg: string; move: bool) = X write, arg, move proc resizemode*(resizemod: string) = X resizemode, resizemod proc resizemode*(): string = X resizemode proc dot*(size: int; color: string) = X dot, size, color proc circle*(radius, extent, steps: int) = X circle, radius, extent, steps proc circle*(radius, extent, steps: float) = X circle, radius, extent, steps proc position*(): tuple[x, y: float] = X position proc pencolor*(red, green, blue: int) = X pencolor, red, green, blue proc pencolor*(red, green, blue: float) = X pencolor, red, green, blue proc pencolor*(): string = X pencolor proc fillcolor*(red, green, blue: int) = X fillcolor, red, green, blue proc fillcolor*(red, green, blue: float) = X fillcolor, red, green, blue proc fillcolor*(): string = X fillcolor proc get_shapepoly*(): seq[tuple[x, y: float]] = X get_shapepoly proc pencolor*(colour: (int, int, int)) = X pencolor, colour proc pencolor*(colour: (float, float, float)) = X pencolor, colour proc pencolor*(colour: string) = X pencolor, colour proc textinput*(title, prompt: string): string = X textinput, title, prompt proc color*(colourA, colourB: (int, int, int)) = X color, colourA, colourB proc color*(colourA, colourB: (float, float, float)) = X color, colourA, colourB proc color*(colourA, colourB: string) = X color, colourA, colourB proc color*(red, green, blue: int) = X color, red, green, blue proc color*(red, green, blue: float) = X color, red, green, blue proc color*(colour: string) = X color, colour proc color*(): tuple[penColor, fillColor: string] = X color proc write*(arg: string; move: bool; align: string) = X write, arg, move, align proc setworldcoordinates*(llx, lly, urx, ury: int) = X setworldcoordinates, llx, lly, urx, ury proc setworldcoordinates*(llx, lly, urx, ury: float) = X setworldcoordinates, llx, lly, urx, ury proc write*(arg: string; move=false; align="left"; font = ("Arial", 9, "normal")) = X write, arg, move, align, font proc shapesize*(stretch_wid, stretch_len, outline: int) = X shapesize, stretch_wid, stretch_len, outline proc shapesize*(stretch_wid, stretch_len, outline: float) = X shapesize, stretch_wid, stretch_len, outline proc turtlesize*(stretch_wid, stretch_len, outline: int) = X turtlesize, stretch_wid, stretch_len, outline proc turtlesize*(stretch_wid, stretch_len, outline: float) = X turtlesize, stretch_wid, stretch_len, outline proc shapesize*(): tuple[stretch_wid, stretch_len, outline: float] = X shapesize proc turtlesize*(): tuple[stretch_wid, stretch_len, outline: float] = X turtlesize proc shapetransform*(t11, t12, t21, t22: int) = X shapetransform, t11, t12, t21, t22 proc shapetransform*(t11, t12, t21, t22: float) = X shapetransform, t11, t12, t21, t22 proc shapetransform*(): tuple[t11, t12, t21, t22: float] = X shapetransform proc screensize*(canvwidth, canvheight: int; bg: string) = X screensize, canvwidth, canvheight, bg proc screensize*(canvwidth, canvheight: float; bg: string) = X screensize, canvwidth, canvheight, bg proc screensize*(canvwidth, canvheight: int; bg: (int, int, int)) = X screensize, canvwidth, canvheight, bg proc screensize*(canvwidth, canvheight: float; bg: (float, float, float)) = X screensize, canvwidth, canvheight, bg proc numinput*(title, prompt: string; default, minval, maxval: int): int = X numinput, title, prompt, default, minval, maxval proc numinput*(title, prompt: string; default, minval, maxval: float): int = X numinput, title, prompt, default, minval, maxval proc register_shape*(gif_file_path: string) = X register_shape, gif_file_path proc register_shape*(name: string; shape: seq[(float, float)]) = X register_shape, name, shape proc register_shape*(name: string; shape: seq[(int, int)]) = X register_shape, name, shape proc setup*(width, height: int; startx, starty: int) = X setup, width, height, startx, starty proc setup*(width, height: float; startx, starty: int) = X setup, width, height, startx, starty proc title*(titlestring: string) = X title, titlestring proc write_docstringdict*(filename="turtle_docstringdict") = X write_docstringdict, filename ================================================ FILE: src/cpython/typing.nim ================================================ ## * https://docs.python.org/3.10/library/typing.html ## * We dont know what is the best way to wrap those, and how useful is to do so, the implementation is kinda magical. import nimpy template X(simbol) = let simbol* {.inject.}: nimpy.PyObject = nimpy.pyImport("typing").simbol # See https://github.com/python/cpython/blob/main/Lib/typing.py#L42 # Super-special typing primitives. X Annotated X Any X Callable X ClassVar X Concatenate X Final X ForwardRef X Generic X Literal X Optional X ParamSpec X Protocol X Tuple X Type X TypeVar X Union # ABCs (from collections.abc). X AbstractSet X ByteString X Container X ContextManager X Hashable X ItemsView X Iterable X Iterator X KeysView X Mapping X MappingView X MutableMapping X MutableSequence X MutableSet X Sequence X Sized X ValuesView X Awaitable X AsyncIterator X AsyncIterable X Coroutine X Collection X AsyncGenerator X AsyncContextManager # Structural checks a.k.a. protocols. X Reversible X SupportsAbs X SupportsBytes X SupportsComplex X SupportsFloat X SupportsIndex X SupportsInt X SupportsRound # Concrete collection types. X ChainMap X Counter X Deque X Dict X DefaultDict X List X OrderedDict X Set X FrozenSet X NamedTuple # Not really a type. X TypedDict # Not really a type. X Generator # Other concrete types. X BinaryIO X IO X Match X Pattern X TextIO ================================================ FILE: src/cpython/unicodedata.nim ================================================ ## * https://docs.python.org/3.10/library/unicodedata.html import nimpy template X(simbol; a): auto = nimpy.pyImport("unicodedata").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("unicodedata").simbol(a, b).to(type(result)) proc lookup*(name: string or char): string = X lookup, name proc name*(chr: string or char): string = X name, chr proc decimal*(chr: string or char): string = X decimal, chr proc digit*(chr: string or char): string = X digit, chr proc numeric*(chr: string or char): string = X numeric, chr proc category*(chr: string or char): string = X category, chr proc bidirectional*(chr: string or char): string = X bidirectional, chr proc combining*(chr: string or char): int = X combining, chr proc east_asian_width*(chr: string or char): string = X east_asian_width, chr proc mirrored*(chr: string or char): int = X mirrored, chr proc decomposition*(chr: string or char): string = X decomposition, chr proc normalize*(form, unistr: string): string = X normalize, form, unistr proc is_normalized*(form, unistr: string): bool = X is_normalized, form, unistr proc numeric*(chr: string or char; default: string): string = X numeric, chr, default proc digit*(chr: string or char; default: string): string = X digit, chr, default proc decimal*(chr: string or char; default: string): string = X decimal, chr, default proc name*(chr: string or char; default: string): string = X name, chr, default ================================================ FILE: src/cpython/upbge/bge_render.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bge.render.html import nimpy template X(simbol; a): auto = nimpy.pyImport("bge.render").simbol(a).to(type(result)) template X(simbol; a, b, c) = discard nimpy.pyImport("bge.render").simbol(a, b, c) template X(simbol): auto = when declared result: nimpy.pyImport("bge.render").simbol().to(type(result)) else: discard nimpy.pyImport("bge.render").simbol() template X(simbol; a, b): auto = when declared result: nimpy.pyImport("bge.render").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("bge.render").simbol(a, b) template X(simbol; a): auto = when declared result: nimpy.pyImport("bge.render").simbol(a).to(type(result)) else: discard nimpy.pyImport("bge.render").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("bge.render").simbol.to(tipe) KX_TEXFACE_MATERIAL := int KX_BLENDER_MULTITEX_MATERIAL := int KX_BLENDER_GLSL_MATERIAL := int VSYNC_OFF := int VSYNC_ON := int VSYNC_ADAPTIVE := int LEFT_EYE := int RAS_MIPMAP_NONE := int RAS_MIPMAP_NEAREST := int RAS_MIPMAP_LINEAR := int proc getWindowWidth*(): int = X getWindowWidth proc getWindowHeight*(): int = X getWindowHeight proc getFullScreen*(): int = X getFullScreen proc getDisplayDimensions*(): array[2, int] = X getDisplayDimensions proc getEyeSeparation*(): float = X getEyeSeparation proc getFocalLength*(): float = X getFocalLength proc getStereoEye*(): string = X getStereoEye proc getAnisotropicFiltering*(): int = X getAnisotropicFiltering proc getMipmapping*(): int = X getMipmapping proc setMousePosition*(x, y: int) = X setMousePosition, x, y proc setWindowSize*(width, height: int) = X setWindowSize, width, height proc setFullScreen*(enable: bool) = X setFullScreen, enable proc makeScreenshot*(filename: string) = X makeScreenshot, filename proc showMouse*(visible: bool) = X showMouse, visible proc enableVisibility*(visible: bool) {.deprecated.} = X enableVisibility, visible proc setBackgroundColor*(rgba: auto) = X setBackgroundColor, rgba proc setEyeSeparation*(eyesep: float) = X setEyeSeparation, eyesep proc setFocalLength*(focallength: float) = X setFocalLength, focallength proc setMaterialMode*(mode: auto) = X setMaterialMode, mode proc setGLSLMaterialSetting*(setting: auto; enable: bool) = X setGLSLMaterialSetting, setting, enable proc setAnisotropicFiltering*(level: 1 .. 16) = X setAnisotropicFiltering, level proc setMipmapping*(value: int) = X setMipmapping, value proc enableMotionBlur*(factor: 0.0 .. 1.0) = X enableMotionBlur, factor proc drawLine*(fromVec, toVec: array[3, int]; color: array[4, int]) = X drawLine, fromVec, toVec, color proc disableMotionBlur*() = X disableMotionBlur proc showFramerate*(enable: bool) = X showFramerate, enable proc showProfile*(enable: bool) = X showProfile, enable proc showProperties*(enable: bool) = X showProperties, enable proc autoDebugList*(enable: bool) = X autoDebugList, enable proc clearDebugList*() = X clearDebugList proc setVsync*(value: int) = X setVsync, value proc getVsync*(): int = X getVsync ================================================ FILE: src/cpython/upbge/bgl.nim ================================================ ## * OpenGL 4.5+ https://upbge.org/#/documentation/docs/latest/api/bgl.html import nimpy template X(simbol; a) = discard nimpy.pyImport("bgl").simbol(a) template X(simbol; a, b) = discard nimpy.pyImport("bgl").simbol(a, b) template X(simbol; a, b, c) = discard nimpy.pyImport("bgl").simbol(a, b, c) template X(simbol; a, b, c, d) = discard nimpy.pyImport("bgl").simbol(a, b, c, d) template X(simbol; a, b, c, d, e) = discard nimpy.pyImport("bgl").simbol(a, b, c, d, e) template X(simbol; a, b, c, d, e, f) = discard nimpy.pyImport("bgl").simbol(a, b, c, d, e, f) template X(simbol; a, b, c, d, e, f, g) = discard nimpy.pyImport("bgl").simbol(a, b, c, d, e, f, g) template X(simbol; a, b, c, d, e, f, g, h) = discard nimpy.pyImport("bgl").simbol(a, b, c, d, e, f, g, h) template X(simbol; a, b, c, d, e, f, g, h, i, j) = discard nimpy.pyImport("bgl").simbol(a, b, c, d, e, f, g, h, i, j) template X(simbol): auto = when declared result: nimpy.pyImport("bgl").simbol().to(type(result)) else: discard nimpy.pyImport("bgl").simbol() proc glBindTexture*(target: int; texture: uint) = X glBindTexture, target, texture proc glBlendFunc*(sfactor, dfactor: int) = X glBlendFunc, sfactor, dfactor proc glClear*(mask: int) = X glClear, mask proc glClearColor*(red, green, blue, alpha: int) = X glClearColor, red, green, blue, alpha proc glClearDepth*(depth: int) = X glClearDepth, depth proc glClearStencil*(s: int) = X glClearStencil, s proc glClipPlane*(plane: int; equation: auto) = X glClipPlane, plane, equation proc glColor*(red, green, blue, alpha: int) = X glColor, red, green, blue, alpha proc glColorMask*(red, green, blue, alpha: int) = X glColorMask, red, green, blue, alpha proc glCopyTexImage2D*(target, level, internalformat, x, y, width, height, border: int) = X glCopyTexImage2D, target, level, internalformat, x, y, width, height, border proc glCullFace*(mode: int) = X glCullFace, mode proc glDeleteTextures*(n: int; textures: auto) = X glDeleteTextures, n, textures proc glDepthFunc*(fun: int) = X glDepthFunc, fun proc glDepthMask*(flag: int or bool) = X glDepthMask, flag proc glDepthRange*(zNear, zFar: int) = X glDepthRange, zNear, zFar proc glDisable*(cap: int) = X glDisable, cap proc glDrawBuffer*(mode: int) = X glDrawBuffer, mode proc glEdgeFlag*(flag: int) = X glEdgeFlag, flag proc glEnable*(cap: int) = X glEnable, cap proc glEvalCoord*(u, v: auto) = X glEvalCoord, u, v proc glEvalMesh*(mode, i1, i2: int) = X glEvalMesh, mode, i1, i2 proc glEvalPoint*(i, j: int) = X glEvalPoint, i, j proc glFeedbackBuffer*(size, tipe: int; buffer: auto) = X glFeedbackBuffer, size, tipe, buffer proc glFinish*() = X glFinish proc glFlush*() = X glFlush proc glFog*(pname: int; param: auto) = X glFog, pname, param proc glFrontFace*(mode: int) = X glFrontFace, mode proc glGenTextures*(n: int; textures: auto) = X glGenTextures, n, textures proc glGet*(pname: int; param: auto) = X glGet, pname, param proc glGetError*(): int = X glGetError proc glGetLight*(light, pname: int; params: auto) = X glGetLight, light, pname, params proc glGetMap*(target, query: int; v: auto) = X glGetMap, target, query, v proc glGetString*(name: string): string = X glGetString, name proc glGetTexLevelParameter*(target, level, pname: int; params: auto) = X glGetTexLevelParameter, target, level, pname, params proc glHint*(target, mode: int) = X glHint, target, mode proc glIsEnabled*(cap: int): bool = X glIsEnabled, cap proc glIsTexture*(texture: uint): bool = X glIsTexture, texture proc glLight*(light, pname: int; param: auto) = X glLight, light, pname, param proc glLightModel*(pname: int; param: auto) = X glLightModel, pname, param proc glLineWidth*(width: float) = X glLineWidth, width proc glLoadMatrix*(m: auto) = X glLoadMatrix, m proc glLogicOp*(opcode: int) = X glLogicOp, opcode proc glMap1*(target, u1, u2, stride, order: int; points: auto) = X glMap1, target, u1, u2, stride, order, points proc glMap2*(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder: int; points: auto) = X glMap2, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points proc glMapGrid*(un, u1,u2 ,vn, v1, v2: int) = X glMapGrid, un, u1,u2 ,vn, v1, v2 proc glMaterial*(face, pname, params: int) = X glMaterial, face, pname, params proc glMultMatrix*(m: auto) = X glMultMatrix, m proc glNormal3*(nx, ny, nz: int; v: auto) = X glNormal3, nx, ny, nz, v proc glPixelMap*(map, mapsize: int; values: auto) = X glPixelMap, map, mapsize, values proc glPixelStore*(pname: int; param: auto) = X glPixelStore, pname, param proc glPixelTransfer*(pname: int; param: auto) = X glPixelTransfer, pname, param proc glPointSize*(size: int) = X glPointSize, size proc glPolygonMode*(face, mode: int) = X glPolygonMode, face, mode proc glPolygonOffset*(factor, units: float) = X glPolygonOffset, factor, units proc glRasterPos*(x, y, z, w: int or float) = X glRasterPos, x, y, z, w proc glReadBuffer*(mode: int) = X glReadBuffer, mode proc glReadPixels*(x, y, width, height, format, tipe: int; pixels: auto) = X glReadPixels, x, y, width, height, format, tipe, pixels proc glRect*(x1, y1, x2, y2, v1, v2: float or int) = X glRect, x1, y1, x2, y2, v1, v2 proc glRotate*(angle: auto; x, y, z: float or int) = X glRotate, angle, x, y, z proc glScale*(x, y, z: float or int) = X glScale, x, y, z proc glScissor*(x, y, width, height: float or int) = X glScissor, x, y, width, height proc glStencilFunc*(fun, refe: int; mask: uint) = X glStencilFunc, fun, refe, mask proc glStencilMask*(mask: uint) = X glStencilMask, mask proc glStencilOp*(fail, zfail, zpass: int) = X glStencilOp, fail, zfail, zpass proc glTexCoord*(s, t, r, q: int; v: auto) = X glTexCoord, s, t, r, q, v proc glTexEnv*(target, pname: int; param: auto) = X glTexEnv, target, pname, param proc glTexGen*(coord, pname: int; param: auto) = X glTexGen, coord, pname, param proc glTexImage1D*(target, level, internalformat, width, border, format, tipe: int; pixels: auto) = X glTexImage1D, target, level, internalformat, width, border, format, tipe, pixels proc glTexImage2D*(target, level, internalformat, width, height, border, format, tipe: int; pixels: auto) = X glTexImage2D, target, level, internalformat, width, height, border, format, tipe, pixels proc glTexParameter*(target, pname: int; param: auto) = X glTexParameter, target, pname, param proc glTranslate*(x, y, z: int or float) = X glTranslate, x, y, z proc glViewport*(x, y, width, height: int or float) = X glViewport, x, y, width, height proc glUseProgram*(program: int) = X glUseProgram, program proc glLinkProgram*(program: int) = X glLinkProgram, program proc glActiveTexture*(texture: int) = X glActiveTexture, texture proc glAttachShader*(program, shader: int) = X glAttachShader, program, shader proc glCompileShader*(shader: int) = X glCompileShader, shader proc glCreateProgram*(): int = X glCreateProgram proc glCreateShader*(shaderType: int): int = X glCreateShader, shaderType proc glDeleteProgram*(program: int) = X glDeleteProgram, program proc glDeleteShader*(shader: int) = X glDeleteShader, shader proc glDetachShader*(program, shader: int) = X glDetachShader, program, shader proc glGetAttachedShaders*(program, maxCount: int; count, shaders: auto) = X glGetAttachedShaders, program, maxCount, count, shaders proc glGetProgramInfoLog*(program, maxLength: int; length, infoLog: auto) = X glGetProgramInfoLog, program, maxLength, length, infoLog proc glGetShaderInfoLog*(program, maxLength: int; length, infoLog: auto) = X glGetShaderInfoLog, program, maxLength, length, infoLog proc glGetProgramiv*(program, pname: int; params: auto) = X glGetProgramiv, program, pname, params proc glIsShader*(shader: int) = X glIsShader, shader proc glIsProgram*(program: int) = X glIsProgram, program proc glGetShaderSource*(shader, bufSize: int; length, source: auto) = X glGetShaderSource, shader, bufSize, length, source proc glShaderSource*(shader: int; shader_string: string) = X glShaderSource, shader, shader_string ================================================ FILE: src/cpython/upbge/bl_math.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bl_math.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("bl_math").simbol(a, b, c).to(type(result)) proc clamp*(value: float, min = 0.0, max = 1.0): float = X clamp, value, min, max proc lerp*(frm, to, factor: float): float = X lerp, frm, to, factor proc smoothstep*(frm, to, factor: float): float = X smoothstep, frm, to, factor ================================================ FILE: src/cpython/upbge/blf.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/blf.html import nimpy template X(simbol; a, b, c) = discard nimpy.pyImport("blf").simbol(a, b, c) template X(simbol; a, b, c, d) = discard nimpy.pyImport("blf").simbol(a, b, c, d) template X(simbol; a, b, c, d, e) = discard nimpy.pyImport("blf").simbol(a, b, c, d, e) template X(simbol; a, b, c, d, e, f) = discard nimpy.pyImport("blf").simbol(a, b, c, d, e, f) template X(simbol; a): auto = when declared result: nimpy.pyImport("blf").simbol(a).to(type(result)) else: discard nimpy.pyImport("blf").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("blf").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("blf").simbol(a, b) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("blf").simbol.to(tipe) CLIPPING := int KERNING_DEFAULT := int MONOCHROME := int ROTATION := int SHADOW := int WORD_WRAP := int proc load*(filename: string): int = X load, filename proc dimensions*(fontid: int; text: string): tuple[width, height: float] = X dimensions, fontid, text proc unload*(filename: string) = X unload, filename proc aspect*(fontid: int; aspect: float) = X aspect, fontid, aspect proc clipping*(fontid: int; xmin, ymin, xmax, ymax: float) = X clipping, fontid, xmin, ymin, xmax, ymax proc color*(fontid: int; r, g, b, a: float) = X color, fontid, r, g, b, a proc disable*(fontid, option: int) = X disable, fontid, option proc enable*(fontid, option: int) = X enable, fontid, option proc draw*(fontid: int; text: string) = X draw, fontid, text proc position*(fontid: int; x, y, z: float) = X position, fontid, x, y, z proc rotation*(fontid: int; angle: float) = X rotation, fontid, angle proc shadow*(fontid: int; level: 0..5; r, g, b, a: 0.0..1.0) = X shadow, fontid, level, r, g, b, a proc shadow_offset*(fontid: int; x, y: float) = X shadow_offset, fontid, x, y proc size*(fontid, size, dpi: int) = X size, fontid, size, dpi proc word_wrap*(fontid, wrap_width: int) = X word_wrap, fontid, wrap_width ================================================ FILE: src/cpython/upbge/bpy_app.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/bpy.app.html import nimpy template `:=`(simbol; tipe: static[typedesc]) = let simbol* {.inject.}: tipe = nimpy.pyImport("bpy.app").simbol.to(tipe) autoexec_fail := bool autoexec_fail_quiet := bool debug := bool debug_depsgraph := bool debug_depsgraph_build := bool debug_depsgraph_eval := bool debug_depsgraph_pretty := bool debug_depsgraph_tag := bool debug_depsgraph_time := bool debug_events := bool debug_ffmpeg := bool debug_freestyle := bool debug_handlers := bool debug_io := bool debug_python := bool debug_simdata := bool debug_wm := bool use_event_simulate := bool use_userpref_skip_save_on_exit := bool background := bool factory_startup := bool autoexec_fail_message := string tempdir := string debug_value := int render_icon_size := int render_preview_size := int build_branch := string build_cflags := string build_commit_date := string build_commit_time := string build_cxxflags := string build_date := string build_hash := string build_linkflags := string build_platform := string build_system := string build_time := string build_type := string build_commit_timestamp := int binary_path := string version_char := string version_cycle := string version_string := string proc is_job_running*(job_type: string): bool = nimpy.pyImport("bpy.app").is_job_running(job_type).to(bool) ================================================ FILE: src/cpython/upbge/bpy_app_icons.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.app.icons.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("bpy.app.icons").simbol(a, b, c).to(type(result)) template X(simbol; a): auto = when declared result: nimpy.pyImport("bpy.app.icons").simbol(a).to(type(result)) else: discard nimpy.pyImport("bpy.app.icons").simbol(a) proc release*(icon_id: int) = X release, icon_id proc new_triangles*(rang, coords, colors: auto): int = X new_triangles, rang, coords, colors proc new_triangles_from_file*(filename: string): int = X new_triangles_from_file, filename ================================================ FILE: src/cpython/upbge/bpy_app_timers.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.app.timers.html import nimpy template X(simbol; a, b, c) = discard nimpy.pyImport("bpy.app.timers").simbol(a, b, c) template X(simbol; a): auto = when declared result: nimpy.pyImport("bpy.app.timers").simbol(a).to(type(result)) else: discard nimpy.pyImport("bpy.app.timers").simbol(a) proc is_registered*(function: auto): bool = X is_registered, function proc register*(function: auto; first_interval = 0; persistent = false) = X register, function, first_interval, persistent proc unregister*(function: auto) = X unregister, function ================================================ FILE: src/cpython/upbge/bpy_app_translations.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.app.translations.html import nimpy template X(simbol; a, b): auto = nimpy.pyImport("bpy.app.translations").simbol(a, b).to(type(result)) template X(simbol; a): auto = when declared result: nimpy.pyImport("bpy.app.translations").simbol(a).to(type(result)) else: discard nimpy.pyImport("bpy.app.translations").simbol(a) template `:=`(simbol; tipe: typedesc) = let simbol* {.inject.}: tipe = nimpy.pyImport("bpy.app.translations").simbol.to(tipe) locale := string locales := seq[string] proc pgettext*(msgid, msgctxt: string): string = X pgettext, msgid, msgctxt proc pgettext*(msgid: string): string = X pgettext, msgid proc pgettext_data*(msgid, msgctxt: string): string = X pgettext_data, msgid, msgctxt proc pgettext_data*(msgid: string): string = X pgettext_data, msgid proc pgettext_iface*(msgid, msgctxt: string): string = X pgettext_iface, msgid, msgctxt proc pgettext_iface*(msgid: string): string = X pgettext_iface, msgid proc pgettext_tip*(msgid, msgctxt: string): string = X pgettext_tip, msgid, msgctxt proc pgettext_tip*(msgid: string): string = X pgettext_tip, msgid proc unregister*(module_name: string) = X unregister, module_name proc locale_explode*(locale: string): tuple[language, country, variant, language_country, language_variant: string] = X locale_explode, locale ================================================ FILE: src/cpython/upbge/bpy_msgbus.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.msgbus.html import nimpy template X(simbol; a) = discard nimpy.pyImport("bpy.msgbus").simbol(a) template X(simbol; a, b, c, d) = discard nimpy.pyImport("bpy.msgbus").simbol(a, b, c, d) template X(simbol; a, b, c, d, e) = discard nimpy.pyImport("bpy.msgbus").simbol(a, b, c, d, e) proc clear_by_owner*(owner: auto) = X clear_by_owner, owner proc publish_rna*(key: auto) = X publish_rna, key proc subscribe_rna*(key, owner, args, notify, options: auto) = X subscribe_rna, key, owner, args, notify, options proc subscribe_rna*(key, owner, args, notify: auto) = X subscribe_rna, key, owner, args, notify ================================================ FILE: src/cpython/upbge/bpy_path.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.path.html (These are "optimized" for Blender/UPBGE) import nimpy template X(simbol; a): auto = nimpy.pyImport("bpy.path").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("bpy.path").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("bpy.path").simbol(a, b, c).to(type(result)) proc abspath*(path, start, library: string): string = X abspath, path, start, library proc abspath*(path, start: string): string = X abspath, path, start proc abspath*(path: string): string = X abspath, path proc basename*(path: string): string = X basename, path proc clean_name*(name: string; replace = "_"): string = X clean_name, name, replace proc display_name*(name: string): string = X display_name, name proc display_name_to_filepath*(name: string): string = X display_name_to_filepath, name proc display_name_from_filepath*(name: string): string = X display_name_from_filepath, name proc is_subdir*(path, directory: string): bool = X is_subdir, path, directory proc native_pathsep*(path: string): string = X native_pathsep, path proc reduce_dirs*(dirs: seq[string]): seq[string] = X reduce_dirs, dirs proc relpath*(path, start: string): string = X relpath, path, start proc relpath*(path: string): string = X relpath, path proc resolve_ncase*(path: string): string = X resolve_ncase, path proc module_names*(path: string; recursive = false): seq[string] = X module_names, path, recursive proc ensure_ext*(filepath, ext: string; case_sensitive = false): string = X ensure_ext, filepath, ext, case_sensitive ================================================ FILE: src/cpython/upbge/bpy_utils.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.utils.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d, e).to(type(result)) template X(simbol; a, b, c, d, e, f): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d, e, f).to(type(result)) template X(simbol; a, b, c, d, e, f, g): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d, e, f, g).to(type(result)) template X(simbol; a, b, c, d, e, f, g, h): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d, e, f, g, h).to(type(result)) template X(simbol; a, b, c, d, e, f, g, h, i, j): auto = nimpy.pyImport("bpy.utils").simbol(a, b, c, d, e, f, g, h, i, j).to(type(result)) template X(simbol): auto = when declared result: nimpy.pyImport("bpy.utils").simbol().to(type(result)) else: discard nimpy.pyImport("bpy.utils").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("bpy.utils").simbol(a).to(type(result)) else: discard nimpy.pyImport("bpy.utils").simbol(a) template X(simbol; a, b): auto = when declared result: nimpy.pyImport("bpy.utils").simbol(a, b).to(type(result)) else: discard nimpy.pyImport("bpy.utils").simbol(a, b) proc blend_paths*(absolute = false, packed = false, local = false): seq[string] = X blend_paths, absolute, packed, local proc escape_identifier*(str: string): string = X escape_identifier, str proc unescape_identifier*(str: string): string = X unescape_identifier, str proc register_class*(class: auto) = X register_class, class proc resource_path*(tipe: string; major: int; minor: string): string = X resource_path, tipe, major, minor proc resource_path*(tipe: string; major: int): string = X resource_path, tipe, major proc resource_path*(tipe: string): string = X resource_path, tipe proc unregister_class*(class: auto) = X unregister_class, class proc keyconfig_init*() = X keyconfig_init proc keyconfig_set*(filepath: string) = X keyconfig_set, filepath proc load_scripts*(reload_scripts = false, refresh_scripts = false) = X load_scripts, reload_scripts, refresh_scripts proc preset_paths*(subdir: string): seq[string] = X preset_paths, subdir proc refresh_script_paths*() = X refresh_script_paths proc register_manual_map*(manual_hook: auto) = X register_manual_map, manual_hook proc unregister_manual_map*(manual_hook: auto) = X unregister_manual_map, manual_hook proc register_tool*(tool_cls: auto) = X register_tool, tool_cls proc unregister_tool*(tool_cls: auto) = X unregister_tool, tool_cls proc make_rna_paths*(struct_name, prop_name, enum_name: string): (string, string, string) = X make_rna_paths, struct_name, prop_name, enum_name proc script_path_user*(): string = X script_path_user proc script_path_pref*(): string = X script_path_pref proc smpte_from_frame*(frame, fps, fps_base: int or float): string = X smpte_from_frame, frame, fps, fps_base proc smpte_from_frame*(frame, fps: int or float): string = X smpte_from_frame, frame, fps proc smpte_from_frame*(frame: int or float): string = X smpte_from_frame, frame proc smpte_from_seconds*(frame, fps, fps_base: int or float): string = X smpte_from_seconds, frame, fps, fps_base proc smpte_from_seconds*(frame, fps: int or float): string = X smpte_from_seconds, frame, fps proc smpte_from_seconds*(frame: int or float): string = X smpte_from_seconds, frame proc user_resource*(resource_type: string, path = ""; create = false): string = X user_resource, resource_type, path, create proc execfile*(filepath: string) = X execfile, filepath proc script_paths*(subdir: string; user_pref = true, check_all = false, use_user = true): seq[string] = X script_paths, subdir, user_pref, check_all, use_user proc preset_find*(name, preset_path: string, display_name = false, ext = ".py"): seq[string] = X preset_find, name, preset_path, display_name, ext ================================================ FILE: src/cpython/upbge/bpy_utils_units.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/bpy.utils.units.html import nimpy template X(simbol; a, b, c): auto = nimpy.pyImport("bpy.utils.units").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("bpy.utils.units").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e, f): auto = nimpy.pyImport("bpy.utils.units").simbol(a, b, c, d, e, f).to(type(result)) proc to_string*(unit_system, unit_category: string; value: float; precision=3; split_unit=false, compatible_unit=false): string = X to_string, unit_system, unit_category, value, precision, split_unit, compatible_unit proc to_value*(unit_system, unit_category, str_input, str_ref_unit: string): float = X to_value, unit_system, unit_category, str_input, str_ref_unit proc to_value*(unit_system, unit_category, str_input: string): float = X to_value, unit_system, unit_category, str_input ================================================ FILE: src/cpython/upbge/gpu_capabilities.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/gpu_extras.presets.html import nimpy template X(simbol): auto = nimpy.pyImport("gpu.capabilities").simbol().to(type(result)) proc extensions_get*(): seq[string] = X extensions_get proc max_batch_indices_get*(): int = X max_batch_indices_get proc max_batch_vertices_get*(): int = X max_batch_vertices_get proc max_texture_layers_get*(): int = X max_texture_layers_get proc max_texture_size_get*(): int = X max_texture_size_get proc max_textures_frag_get*(): int = X max_textures_frag_get proc max_textures_geom_get*(): int = X max_textures_geom_get proc max_textures_get*(): int = X max_textures_get proc max_textures_vert_get*(): int = X max_textures_vert_get proc max_uniforms_frag_get*(): int = X max_uniforms_frag_get proc max_varying_floats_get*(): int = X max_varying_floats_get proc max_vertex_attribs_get*(): int = X max_vertex_attribs_get ================================================ FILE: src/cpython/upbge/gpu_extras.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/gpu_extras.presets.html import nimpy template X(simbol; a, b, c) = discard nimpy.pyImport("gpu_extras.presets").simbol(a, b, c) proc draw_circle_2d*(position: array[2, int]; color: array[4, int]; radius: float) = X draw_circle_2d, position, color, radius ================================================ FILE: src/cpython/upbge/gpu_platform.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/gpu.platform.html import nimpy template X(simbol): auto = nimpy.pyImport("gpu.platform").simbol().to(type(result)) proc renderer_get*(): string = X renderer_get proc vendor_get*(): string = X vendor_get proc version_get*(): string = X version_get ================================================ FILE: src/cpython/upbge/gpu_select.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/gpu.select.html import nimpy proc load_id*(id: uint32) = discard nimpy.pyImport("gpu.select").load_id(id) ================================================ FILE: src/cpython/upbge/gpu_state.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/gpu.state.html import nimpy template X(simbol): auto = nimpy.pyImport("gpu.state").simbol().to(type(result)) template X(simbol, a) = discard nimpy.pyImport("gpu.state").simbol(a) template X(simbol, a, b, c, d) = discard nimpy.pyImport("gpu.state").simbol(a, b, c, d) proc blend_get*(): string = X blend_get proc depth_test_get*(): string = X depth_test_get proc depth_mask_get*(): bool = X depth_mask_get proc blend_set*(mode: string) = X blend_get, mode proc depth_mask_set*(value: bool) = X depth_mask_set, value proc depth_test_set*(mode: string) = X depth_test_set, mode proc color_mask_set*(r, g, b, a: int) = X color_mask_set, r, g, b, a proc clip_distances_set*(distances_enabled: int) = X clip_distances_set, distances_enabled proc face_culling_set*(culling: string) = X face_culling_set, culling proc front_facing_set*(invert: bool) = X front_facing_set, invert proc line_width_get*(): float = X line_width_get proc line_width_set*(width: float) = X line_width_set, width proc point_size_set*(size: float) = X point_size_set, size proc program_point_size_set*(enable: bool) = X program_point_size_set, enable proc viewport_get*(): array[4, int] = X viewport_get proc viewport_set*(x, y, xsize, ysize: int) = X viewport_set, x, y, xsize, ysize ================================================ FILE: src/cpython/upbge/imbuff.nim ================================================ ## https://upbge.org/#/documentation/docs/latest/api/imbuf.html import nimpy template X(simbol; a): auto = nimpy.pyImport("imbuf").simbol(a).to(type(result)) template X(simbol; a, b) = discard nimpy.pyImport("imbuf").simbol(a, b) type ImBuf* = nimpy.PyObject ## https://upbge.org/#/documentation/docs/latest/api/imbuf.types.html proc loadImBuf*(filepath: string): ImBuf = X load, filepath proc newImBuf*(size: array[2, int]): ImBuf = X new, size proc write*(image: ImBuf; filepath: string) = X write, image, filepath ================================================ FILE: src/cpython/upbge/mathutils_geometry.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/mathutils.geometry.html import nimpy template Y(simbol): auto = nimpy.pyImport("mathutils.geometry").simbol().to(type(result)) template Y(simbol; a): auto = nimpy.pyImport("mathutils.geometry").simbol(a).to(type(result)) template Y(simbol; a, b): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b).to(type(result)) template Y(simbol; a, b, c): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b, c).to(type(result)) template Y(simbol; a, b, c, d): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b, c, d).to(type(result)) template Y(simbol; a, b, c, d, e): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b, c, d, e).to(type(result)) template Y(simbol; a, b, c, d, e, f): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b, c, d, e, f).to(type(result)) template Y(simbol; a, b, c, d, e, f, g): auto = nimpy.pyImport("mathutils.geometry").simbol(a, b, c, d, e, f, g).to(type(result)) proc poly_3d_calc*(veclist: seq[array[3, float]]; pt: array[3, float]): seq[float] = nimpy.pyImport("mathutils.interpolate").poly_3d_calc(veclist, pt).to(type(result)) proc delaunay_2d_cdt*(vert_coords: seq[array[2, float]]; edges: seq[(int, int)]; faces: seq[seq[int]]; output_type: auto; epsilon: 0..3 ): tuple[vert_coords: seq[array[2, float]]; edges: seq[(int, int)]; faces, orig_verts, orig_edges, orig_faces: seq[seq[int]] ] = Y delaunay_2d_cdt, vert_coords, edges, faces, output_type, epsilon proc area_tri*(v1, v2, v3: array[3, float]): float = Y area_tri, v1, v2, v3 proc barycentric_transform*(point, tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3: array[3, float]): array[3, float] = Y barycentric_transform, point, tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3 proc box_fit_2d*(points: seq[array[2, float]]): float = Y box_fit_2d, points proc box_pack_2d*(boxes: seq[tuple[x, y, width, height: float]]): tuple[width, height: float] = Y box_pack_2d, boxes proc closest_point_on_tri*(pt, tri_p1, tri_p2, tri_p3: array[3, float]): array[3, float] = Y closest_point_on_tri, pt, tri_p1, tri_p2, tri_p3 proc convex_hull_2d*(points: seq[array[2, float]]): seq[int] = Y convex_hull_2d, points proc distance_point_to_plane*(pt, plane_co, plane_no: array[3, float]): float = Y distance_point_to_plane, pt, plane_co, plane_no proc interpolate_bezier*(knot1, handle1, handle2, knot2: array[3, float]; resolution: int): seq[array[3, float]] = Y interpolate_bezier, knot1, handle1, handle2, knot2, resolution proc intersect_line_line*(v1, v2, v3, v4: array[3, float]): array[3, float] = Y intersect_line_line, v1, v2, v3, v4 proc intersect_line_line_2d*(lineA_p1, lineA_p2, lineB_p1, lineB_p2: array[2, float]): array[2, float] = Y intersect_line_line_2d, lineA_p1, lineA_p2, lineB_p1, lineB_p2 proc intersect_line_plane*(line_a, line_b, plane_co, plane_no: array[3, float]; no_flip = false): array[3, float] = Y intersect_line_plane, line_a, line_b, plane_co, plane_no, no_flip proc intersect_line_sphere*(line_a, line_b, sphere_co: array[3, float]; sphere_radius: auto, clip = true): (array[3, float], array[3, float]) = Y intersect_line_sphere, line_a, line_b, sphere_co, sphere_radius, clip proc intersect_line_sphere_2d*(line_a, line_b, sphere_co: array[2, float]; sphere_radius: auto, clip = true): (array[2, float], array[2, float]) = Y intersect_line_sphere_2d, line_a, line_b, sphere_co, sphere_radius, clip proc intersect_plane_plane*(plane_a_co, plane_a_no, plane_b_co, plane_b_no: array[3, float]): (array[3, float], array[3, float]) = Y intersect_plane_plane, plane_a_co, plane_a_no, plane_b_co, plane_b_no proc intersect_point_line*(pt, line_p1: array[3, float]; line_p2: auto): (array[3, float], float) = Y intersect_point_line, pt, line_p1, line_p2 proc intersect_point_quad_2d*(pt, quad_p1, quad_p2, quad_p3, quad_p4: array[2, float]): int = Y intersect_point_quad_2d, pt, quad_p1, quad_p2, quad_p3, quad_p4 proc intersect_point_tri*(pt, tri_p1, tri_p2, tri_p3: array[3, float]): array[3, float] = Y intersect_point_tri, pt, tri_p1, tri_p2, tri_p3 proc intersect_point_tri_2d*(pt, tri_p1, tri_p2, tri_p3: array[2, float]): int = Y intersect_point_tri_2d, pt, tri_p1, tri_p2, tri_p3 proc intersect_ray_tri*(v1, v2, v3, ray, orig: array[3, float]; clip = true): array[3, float] = Y intersect_ray_tri, v1, v2, v3, ray, orig, clip proc intersect_sphere_sphere_2d*(p_a: array[2, float]; radius_a: float; p_b: array[2, float]; radius_b: float): (array[2, float], array[2, float]) = Y intersect_sphere_sphere_2d, p_a, radius_a, p_b, radius_b proc intersect_tri_tri_2d*(tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3: array[2, float]): bool = Y intersect_tri_tri_2d, tri_a1, tri_a2, tri_a3, tri_b1, tri_b2, tri_b3 proc normal*(vectors: seq[array[3, float]]): array[3, float] = Y normal, vectors proc tessellate_polygon*(veclist_list: auto): seq[seq[float]] = Y tessellate_polygon, veclist_list proc volume_tetrahedron*(v1, v2, v3, v4: array[3, float]): float = Y volume_tetrahedron, v1, v2, v3, v4 ================================================ FILE: src/cpython/upbge/mathutils_noise.nim ================================================ ## * https://upbge.org/#/documentation/docs/latest/api/mathutils.noise.html import nimpy template X(simbol): auto = nimpy.pyImport("mathutils.noise").simbol().to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("mathutils.noise").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("mathutils.noise").simbol(a, b, c).to(type(result)) template X(simbol; a, b, c, d): auto = nimpy.pyImport("mathutils.noise").simbol(a, b, c, d).to(type(result)) template X(simbol; a, b, c, d, e): auto = nimpy.pyImport("mathutils.noise").simbol(a, b, c, d, e).to(type(result)) template X(simbol; a, b, c, d, e, f): auto = nimpy.pyImport("mathutils.noise").simbol(a, b, c, d, e, f).to(type(result)) template X(simbol; a, b, c, d, e, f, g): auto = nimpy.pyImport("mathutils.noise").simbol(a, b, c, d, e, f, g).to(type(result)) template X(simbol; a): auto = when declared result: nimpy.pyImport("mathutils.noise").simbol(a).to(type(result)) else: discard nimpy.pyImport("mathutils.noise").simbol(a) proc random*(): float = X random proc seed_set*(seed: int) = X seed_set, seed proc random_vector*(size: 2..4 = 3): seq[float] = X random_vector, size proc random_unit_vector*(size: 2..4 = 3): seq[float] = X random_unit_vector, size proc cell*(position: array[3, float]): float = X cell, position proc fractal*(position: array[3, float]; h, lacunarity: float; octaves: int; noise_basis = "PERLIN_ORIGINAL"): float = X fractal, position, h, lacunarity, octaves, noise_basis proc cell_vector*(position: array[3, float]): array[3, float] = X cell_vector, position proc hetero_terrain*(position: array[3, float]; h, lacunarity: float; octaves: int; offset: float; noise_basis = "PERLIN_ORIGINAL"): float = X hetero_terrain, position, h, lacunarity, octaves, offset, noise_basis proc hybrid_multi_fractal*(position: array[3, float]; h, lacunarity: float; octaves: int; offset, gain: float; noise_basis = "PERLIN_ORIGINAL"): float = X hybrid_multi_fractal, position, h, lacunarity, octaves, offset, gain, noise_basis proc multi_fractal*(position: array[3, float]; h, lacunarity: float; octaves: int; noise_basis = "PERLIN_ORIGINAL"): float = X multi_fractal, position, h, lacunarity, octaves, noise_basis proc noise*(position: array[3, float]; noise_basis = "PERLIN_ORIGINAL"): float = X noise, position, noise_basis proc noise_vector*(position: array[3, float]; noise_basis = "PERLIN_ORIGINAL"): array[3, float] = X noise_vector, position, noise_basis proc ridged_multi_fractal*(position: array[3, float]; h, lacunarity: float; octaves: int; offset, gain: float; noise_basis = "PERLIN_ORIGINAL"): float = X ridged_multi_fractal, position, h, lacunarity, octaves, offset, gain, noise_basis proc turbulence*(position: array[3, float]; octaves: int; hard: bool; noise_basis = "PERLIN_ORIGINAL"; amplitude_scale=0.5, frequency_scale=2.0): float = X turbulence, position, octaves, hard, noise_basis, amplitude_scale, frequency_scale proc turbulence_vector*(position: array[3, float]; octaves: int; hard: bool; noise_basis = "PERLIN_ORIGINAL"; amplitude_scale=0.5, frequency_scale=2.0): array[3, float] = X turbulence_vector, position, octaves, hard, noise_basis, amplitude_scale, frequency_scale proc variable_lacunarity*(position: array[3, float]; distortion: float; noise_type1="PERLIN_ORIGINAL", noise_type2="PERLIN_ORIGINAL"): float = X variable_lacunarity, position, distortion, noise_type1, noise_type2 proc voronoi*(position: array[3, float]; distance_metric="DISTANCE"; exponent=2.5): (array[4, float], seq[array[3, float]]) = X voronoi, position, distance_metric, exponent ================================================ FILE: src/cpython/uu.nim ================================================ ## * https://docs.python.org/3.10/library/uu.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("uu").simbol(a, b) template X(simbol; a, b, c, d) = discard nimpy.pyImport("uu").simbol(a, b, c, d) proc encode*(in_file, out_file, name, mode: string) = X encode, in_file, out_file, name, mode proc encode*(in_file, out_file: string) = X encode, in_file, out_file proc decode*(in_file, out_file, mode: string; quiet=false) = X decode, in_file, out_file, mode, quiet proc decode*(in_file, out_file: string) = X decode, in_file, out_file ================================================ FILE: src/cpython/uuid.nim ================================================ ## * https://docs.python.org/3.10/library/uuid.html import nimpy template X(simbol): auto = nimpy.pyBuiltinsModule().str(nimpy.pyImport("unicodedata").simbol()).to(type(result)) template X(simbol; a, b): auto = nimpy.pyBuiltinsModule().str(nimpy.pyImport("unicodedata").simbol(a, b)).to(type(result)) proc uuid1*(): string = X uuid1 proc uuid4*(): string = X uuid4 proc uuid3*(namespace, name: string): string = X uuid3, namespace, name proc uuid5*(namespace, name: string): string = X uuid5, namespace, name ================================================ FILE: src/cpython/venv.nim ================================================ ## * https://docs.python.org/3.10/library/venv.html import nimpy proc create*( env_dir : string; system_site_packages = false; clear = false; symlinks = false; with_pip = false; prompt = "." ; upgrade_deps = false; ) = discard nimpy.pyImport("venv").create(env_dir, system_site_packages, clear, symlinks, with_pip, prompt, upgrade_deps) ================================================ FILE: src/cpython/warnings.nim ================================================ ## * https://docs.python.org/3.10/library/warnings.html import nimpy template X(simbol) = discard nimpy.pyImport("warnings").simbol() template X(simbol; a): auto = when declared result: nimpy.pyImport("warnings").simbol(a).to(type(result)) else: discard nimpy.pyImport("warnings").simbol(a) proc warn*(message: string) = X warn, message proc warn_explicit*(message: string) = X warn_explicit, message proc formatwarning*(message: string): string = X formatwarning, message proc resetwarnings*(message: string) = X resetwarnings ================================================ FILE: src/cpython/webbrowser.nim ================================================ ## * https://docs.python.org/3.10/library/webbrowser.html import nimpy template X(simbol) = discard nimpy.pyImport("webbrowser").simbol(url) proc open_new*(url: string) = X open_new proc open_new_tab*(url: string) = X open_new_tab ================================================ FILE: src/cpython/winsound.nim ================================================ ## * https://docs.python.org/3.10/library/winsound.html import nimpy template X(simbol) = discard nimpy.pyImport("winsound").simbol() template X(simbol; a) = discard nimpy.pyImport("winsound").simbol(a) template X(simbol; a, b) = discard nimpy.pyImport("winsound").simbol(a, b) proc beep*(frequency, duration: int) = X Beep, frequency, duration proc playSound*(sound: string; flags: int) = X PlaySound, sound, flags proc messageBeep*(tipe: int) = X MessageBeep, tipe proc messageBeep*() = X MessageBeep ================================================ FILE: src/cpython/zipapp.nim ================================================ ## * https://docs.python.org/3.10/library/zipapp.html import nimpy template X(simbol; a, b) = discard nimpy.pyImport("zipapp").simbol(a, b) template X(simbol; a, b, c) = discard nimpy.pyImport("zipapp").simbol(a, b, c) template X(simbol; a, b, c, d) = discard nimpy.pyImport("zipapp").simbol(a, b, c, d) template X(simbol; a): auto = when declared result: nimpy.pyImport("zipapp").simbol(a).to(type(result)) else: discard nimpy.pyImport("zipapp").simbol(a) proc create_archive*(source, target, interpreter, main: string) = X create_archive, source, target, interpreter, main proc create_archive*(source, target, interpreter: string) = X create_archive, source, target, interpreter proc create_archive*(source, target: string) = X create_archive, source, target proc create_archive*(source: string) = X create_archive, source proc get_interpreter*(archive: string): string = X get_interpreter, archive ================================================ FILE: src/cpython/zlib.nim ================================================ ## * https://docs.python.org/3.10/library/zlib.html import nimpy template X(simbol; a): auto = nimpy.pyImport("zlib").simbol(a).to(type(result)) template X(simbol; a, b): auto = nimpy.pyImport("zlib").simbol(a, b).to(type(result)) template X(simbol; a, b, c): auto = nimpy.pyImport("zlib").simbol(a, b, c).to(type(result)) proc adler32*(data: string; value: int): string = X adler32, data, value proc adler32*(data: string): string = X adler32, data proc crc32*(data: string; value: int): string = X crc32, data, value proc crc32*(data: string): string = X crc32, data proc compress*(data: string; level = 9): string = X compress, data, level proc compress*(data: string): string = X compress, data proc decompress*(data: string; wbits, bufsize: int): string = X decompress, data, wbits, bufsize proc decompress*(data: string): string = X decompress, data ================================================ FILE: wiki_changelog_2022.md ================================================ # Wiki changes - 2022-10-15T19:36:40Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T19:36:40Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home'). - 2022-10-15T23:50:52Z SHA [@juancarlospaco](https://github.com/juancarlospaco 'juancarlospaco') edited [Home](https://github.com/juancarlospaco/cpython/wiki/Home 'Home').