Use str(port_or_dir)

Apply this path to prevent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "nosqlite.py", line 402, in __init__
    if 'http://' in port_or_dir or 'http://' in username or 'http://' in password or 'http://' in address:
TypeError: argument of type 'int' is not iterable


using: c = nosqlite.Client(s.port)