src/pylib

Search:
Group by:
Source   Edit  

Welcome to NimPyLib 0.9.5

Nim Pylib

Just write Python code in Nim!

import pylib

The mostly suggested style is

import pkg/pylib

However, omitting the pkg/ prefix shall be fine at most cases:

import pylib

import Python-like stdlib

Cheatsheet for rough alternative between pylib and Python

Nim pylibPython
from pylib/Lib/LIB import nilimport LIB
import pylib/Lib/LIBfrom LIB import *
from pylib/Lib/LIB import XXXimport LIB; from LIB import XXX

Wondering how many libs are available in NimPylib?

Here are the Lib Docs.

Warning: std/lenientops was imported automatically. Compile with -d:pylibNoLenient to disable it if you wish to do int->float conversions yourself

Templates

template timeit(repetitions: int; statements: untyped): untyped {....deprecated: "will be removed from main pylib since 0.10, import it from `pylib/Lib` instead".}
Deprecated: will be removed from main pylib since 0.10, import it from `pylib/Lib` instead

EXT.

Mimics Pythons timeit.timeit(), output shows more information than Pythons.

Source   Edit