This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#------------------------------------------------------------------------------ | |
# | |
# Copyright (c) 1998 James Henstridge, 2006 Nicolas Rougier | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
History: | |
2018.11.25.19: argument path to as_dict(). New methods from_fs() from_dir() | |
2018.11.25 : bugfix in 'r' mode of openbin. | |
2018.10.01 : initial version | |
""" | |
import fs | |
import fs.base | |
import fs.errors | |
import fs.osfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Python 2 and 3 | |
Created on Wed Jan 29 18:40:31 2014 | |
name: inspectsqlite.py | |
@author: Gribouillis for the python forum at www.daniweb.com | |
@license: Public Domain | |
Use this code freely | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import deque | |
import io | |
import re | |
import sys | |
__version__ = '0.0.1' | |
def noop(arg): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
import pathlib | |
import pickle | |
import subprocess as sp | |
import tempfile | |
__version__ = '2019.01.16.2' | |
__all__ = ['spreadsheet_to_dict',] | |
WorksheetKey = namedtuple('WorksheetKey', "index name") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*-coding: utf8-*- | |
# Title: anyfloat.py | |
# Author: Gribouillis for the python forum at www.daniweb.com | |
# Created: 2012-05-02 06:46:42.708131 (isoformat date) | |
# License: Public Domain | |
# Use this code freely. | |
"""Conversion module between floating point representations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*-coding: utf8-*- | |
# Terms of the MIT license, which apply to this software | |
# ======================================================== | |
# Copyright (C) 2014 Eric Ringeisen | |
# | |
# 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from random import randrange | |
Point = namedtuple('Point', 'x y') | |
Part = namedtuple('Part', 'inf sup subpart area') | |
def mincoord(point, other): | |
return Point(min(point.x, other.x), min(point.y, other.y)) | |
def maxcoord(point, other): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# read a .pyc file and pretty-print it | |
# | |
# copied from http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html | |
# and updated to Python 3.5 (Nov 10th 2015) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# check_syntax.py - script to check the syntax of Python files | |
# inspired by the standard library's 'py_compile' module. | |
import importlib.machinery | |
import sys | |
import traceback | |
__all__ = ["has_valid_syntax", "main", "CheckSyntaxError"] | |
__version__ = "2024.10.20" |
OlderNewer