id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,600 | image2term3.py | asciimoo_drawille/examples/image2term3.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# NOTE: This example requires Pillow, a PIL fork for python3
# https://pillow.readthedocs.io/en/5.1.x/installation.html
# example:
# $ PYTHONPATH=`pwd` python3 examples/image2term3.py http://fc00.deviantart.net/fs71/f/2011/310/5/a/giant_nyan_cat_by_daieny-d4fc8u1.png -t ... | 4,749 | Python | .py | 133 | 26.142857 | 152 | 0.542213 | asciimoo/drawille | 3,102 | 128 | 18 | AGPL-3.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,601 | turtle.py | asciimoo_drawille/examples/turtle.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from drawille import Turtle
t = Turtle()
for _ in range(36):
t.right(10)
for _ in range(36):
t.right(10)
t.forward(8)
print(t.frame())
| 209 | Python | .py | 10 | 17.1 | 27 | 0.594872 | asciimoo/drawille | 3,102 | 128 | 18 | AGPL-3.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,602 | setup.py | PyMySQL_mysqlclient/setup.py | #!/usr/bin/env python
import os
import subprocess
import sys
import setuptools
from configparser import ConfigParser
release_info = {}
with open("src/MySQLdb/release.py", encoding="utf-8") as f:
exec(f.read(), None, release_info)
def find_package_name():
"""Get available pkg-config package name"""
# Ub... | 4,455 | Python | .py | 139 | 25.489209 | 87 | 0.615815 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,603 | _exceptions.py | PyMySQL_mysqlclient/src/MySQLdb/_exceptions.py | """Exception classes for _mysql and MySQLdb.
These classes are dictated by the DB API v2.0:
https://www.python.org/dev/peps/pep-0249/
"""
class MySQLError(Exception):
"""Exception related to operation with MySQL."""
__module__ = "MySQLdb"
class Warning(Warning, MySQLError):
"""Exception raised fo... | 2,472 | Python | .py | 56 | 39.517857 | 70 | 0.724906 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,604 | converters.py | PyMySQL_mysqlclient/src/MySQLdb/converters.py | """MySQLdb type conversion module
This module handles all the type conversions for MySQL. If the default
type conversions aren't what you need, you can make your own. The
dictionary conversions maps some kind of type to a conversion function
which returns the corresponding value:
Key: FIELD_TYPE.* (from MySQLdb.const... | 3,452 | Python | .py | 105 | 28.571429 | 70 | 0.71808 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,605 | connections.py | PyMySQL_mysqlclient/src/MySQLdb/connections.py | """
This module implements connections for MySQLdb. Presently there is
only one class: Connection. Others are unlikely. However, you might
want to make your own subclasses. In most cases, you will probably
override Connection.default_cursor with a non-standard Cursor class.
"""
import re
from . import cursors, _mysql
... | 11,850 | Python | .py | 282 | 32.578014 | 86 | 0.617972 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,606 | cursors.py | PyMySQL_mysqlclient/src/MySQLdb/cursors.py | """MySQLdb Cursors
This module implements Cursors of various types for MySQLdb. By
default, MySQLdb uses the Cursor class.
"""
import re
from ._exceptions import ProgrammingError
#: Regular expression for ``Cursor.executemany```.
#: executemany only supports simple bulk insert.
#: You can use it to load large datas... | 15,838 | Python | .py | 405 | 30.128395 | 86 | 0.607902 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,607 | __init__.py | PyMySQL_mysqlclient/src/MySQLdb/__init__.py | """
MySQLdb - A DB API v2.0 compatible interface to MySQL.
This package is a wrapper around _mysql, which mostly implements the
MySQL C API.
connect() -- connects to server
See the C API specification and the MySQL documentation for more info
on other items.
For information on how MySQLdb handles type conversion, s... | 3,393 | Python | .py | 138 | 19.978261 | 78 | 0.670388 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,608 | release.py | PyMySQL_mysqlclient/src/MySQLdb/release.py | __author__ = "Inada Naoki <songofacandy@gmail.com>"
__version__ = "2.2.5"
version_info = (2, 2, 5, "final", 0)
| 111 | Python | .py | 3 | 36 | 51 | 0.611111 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,609 | times.py | PyMySQL_mysqlclient/src/MySQLdb/times.py | """times module
This module provides some Date and Time classes for dealing with MySQL data.
Use Python datetime module to handle date and time columns.
"""
from time import localtime
from datetime import date, datetime, time, timedelta
from MySQLdb._mysql import string_literal
Date = date
Time = time
TimeDelta = ti... | 3,604 | Python | .py | 119 | 22.369748 | 77 | 0.540243 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,610 | CLIENT.py | PyMySQL_mysqlclient/src/MySQLdb/constants/CLIENT.py | """MySQL CLIENT constants
These constants are used when creating the connection. Use bitwise-OR
(|) to combine options together, and pass them as the client_flags
parameter to MySQLdb.Connection. For more information on these flags,
see the MySQL C API documentation for mysql_real_connect().
"""
LONG_PASSWORD = 1
FO... | 666 | Python | .py | 24 | 26.625 | 69 | 0.785603 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,611 | FIELD_TYPE.py | PyMySQL_mysqlclient/src/MySQLdb/constants/FIELD_TYPE.py | """MySQL FIELD_TYPE Constants
These constants represent the various column (field) types that are
supported by MySQL.
"""
DECIMAL = 0
TINY = 1
SHORT = 2
LONG = 3
FLOAT = 4
DOUBLE = 5
NULL = 6
TIMESTAMP = 7
LONGLONG = 8
INT24 = 9
DATE = 10
TIME = 11
DATETIME = 12
YEAR = 13
# NEWDATE = 14 # Internal to MySQL.
VARCHAR ... | 566 | Python | .py | 37 | 14.216216 | 67 | 0.731939 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,612 | ER.py | PyMySQL_mysqlclient/src/MySQLdb/constants/ER.py | """MySQL ER Constants
These constants are error codes for the bulk of the error conditions
that may occur.
"""
if __name__ == "__main__":
"""
Usage: python ER.py [/path/to/mysql/mysqld_error.h ...] >> ER.py
"""
import fileinput
import re
data = {}
error_last = None
for line in fileinp... | 24,878 | Python | .py | 822 | 28.957421 | 78 | 0.78845 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,613 | FLAG.py | PyMySQL_mysqlclient/src/MySQLdb/constants/FLAG.py | """MySQL FLAG Constants
These flags are used along with the FIELD_TYPE to indicate various
properties of columns in a result set.
"""
NOT_NULL = 1
PRI_KEY = 2
UNIQUE_KEY = 4
MULTIPLE_KEY = 8
BLOB = 16
UNSIGNED = 32
ZEROFILL = 64
BINARY = 128
ENUM = 256
AUTO_INCREMENT = 512
TIMESTAMP = 1024
SET = 2048
NUM = 32768
PAR... | 363 | Python | .py | 20 | 17 | 66 | 0.764706 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,614 | CR.py | PyMySQL_mysqlclient/src/MySQLdb/constants/CR.py | """MySQL Connection Errors
Nearly all of these raise OperationalError. COMMANDS_OUT_OF_SYNC
raises ProgrammingError.
"""
if __name__ == "__main__":
"""
Usage: python CR.py [/path/to/mysql/errmsg.h ...] >> CR.py
"""
import fileinput
import re
data = {}
error_last = None
for line in fi... | 2,818 | Python | .py | 99 | 25.181818 | 76 | 0.702912 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,615 | test_mysql.py | PyMySQL_mysqlclient/ci/test_mysql.py | # This is an example test settings file for use with the Django test suite.
#
# The 'sqlite3' backend requires only the ENGINE setting (an in-
# memory database will be used). All other backends will require a
# NAME and potentially authentication information. See the
# following section in the docs for more informatio... | 1,436 | Python | .py | 37 | 34.567568 | 87 | 0.683154 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,616 | configdb.py | PyMySQL_mysqlclient/tests/configdb.py | """Configure database connection for tests."""
from os import environ, path
tests_path = path.dirname(__file__)
conf_file = environ.get("TESTDB", "default.cnf")
conf_path = path.join(tests_path, conf_file)
connect_kwargs = dict(
read_default_file=conf_path,
read_default_group="MySQLdb-tests",
)
def connecti... | 577 | Python | .py | 18 | 28.666667 | 48 | 0.728261 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,617 | test_MySQLdb_times.py | PyMySQL_mysqlclient/tests/test_MySQLdb_times.py | from datetime import time, date, datetime, timedelta
from time import gmtime
import unittest
from unittest import mock
import warnings
from MySQLdb import times
warnings.simplefilter("ignore")
class TestX_or_None(unittest.TestCase):
def test_date_or_none(self):
assert times.Date_or_None("1969-01-01") =... | 5,960 | Python | .py | 122 | 40.180328 | 88 | 0.610767 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,618 | test_MySQLdb_capabilities.py | PyMySQL_mysqlclient/tests/test_MySQLdb_capabilities.py | #!/usr/bin/env python
import capabilities
from datetime import timedelta
from contextlib import closing
import unittest
import MySQLdb
from configdb import connection_factory
import warnings
warnings.filterwarnings("ignore")
class test_MySQLdb(capabilities.DatabaseTest):
db_module = MySQLdb
connect_args = (... | 6,277 | Python | .py | 172 | 25.656977 | 86 | 0.534596 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,619 | dbapi20.py | PyMySQL_mysqlclient/tests/dbapi20.py | #!/usr/bin/env python
""" Python DB API 2.0 driver compliance unit test suite.
This software is Public Domain and may be used without restrictions.
"Now we have booze and barflies entering the discussion, plus rumours of
DBAs on drugs... and I won't tell you what flashes through my mind each
time I read the ... | 31,502 | Python | .py | 766 | 29.870757 | 88 | 0.571941 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,620 | test_MySQLdb_nonstandard.py | PyMySQL_mysqlclient/tests/test_MySQLdb_nonstandard.py | import unittest
from MySQLdb import _mysql
import MySQLdb
from MySQLdb.constants import FIELD_TYPE
from configdb import connection_factory
import warnings
warnings.simplefilter("ignore")
class TestDBAPISet(unittest.TestCase):
def test_set_equality(self):
self.assertTrue(MySQLdb.STRING == MySQLdb.STRING)... | 4,272 | Python | .py | 111 | 30.216216 | 86 | 0.641541 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,621 | test_cursor.py | PyMySQL_mysqlclient/tests/test_cursor.py | import pytest
import MySQLdb.cursors
from configdb import connection_factory
_conns = []
_tables = []
def connect(**kwargs):
conn = connection_factory(**kwargs)
_conns.append(conn)
return conn
def teardown_function(function):
if _tables:
c = _conns[0]
cur = c.cursor()
for t... | 7,107 | Python | .py | 192 | 31.473958 | 88 | 0.613378 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,622 | capabilities.py | PyMySQL_mysqlclient/tests/capabilities.py | #!/usr/bin/env python -O
""" Script to test database capabilities and the DB-API interface
for functionality and memory leaks.
Adapted from a script by M-A Lemburg.
"""
from time import time
import unittest
from configdb import connection_factory
class DatabaseTest(unittest.TestCase):
db_module = None
... | 10,047 | Python | .py | 253 | 29.237154 | 104 | 0.56478 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,623 | test_MySQLdb_dbapi20.py | PyMySQL_mysqlclient/tests/test_MySQLdb_dbapi20.py | #!/usr/bin/env python
import dbapi20
import unittest
import MySQLdb
from configdb import connection_kwargs
import warnings
warnings.simplefilter("ignore")
class test_MySQLdb(dbapi20.DatabaseAPI20Test):
driver = MySQLdb
connect_args = ()
connect_kw_args = connection_kwargs(
dict(sql_mode="ANSI,STR... | 8,096 | Python | .py | 201 | 27.651741 | 88 | 0.520788 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,624 | test_connection.py | PyMySQL_mysqlclient/tests/test_connection.py | import pytest
from MySQLdb._exceptions import ProgrammingError
from configdb import connection_factory
def test_multi_statements_default_true():
conn = connection_factory()
cursor = conn.cursor()
cursor.execute("select 17; select 2")
rows = cursor.fetchall()
assert rows == ((17,),)
def test_m... | 605 | Python | .py | 17 | 31 | 53 | 0.713299 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,625 | test_errors.py | PyMySQL_mysqlclient/tests/test_errors.py | import pytest
import MySQLdb.cursors
from configdb import connection_factory
_conns = []
_tables = []
def connect(**kwargs):
conn = connection_factory(**kwargs)
_conns.append(conn)
return conn
def teardown_function(function):
if _tables:
c = _conns[0]
cur = c.cursor()
for t... | 1,382 | Python | .py | 41 | 28.243902 | 69 | 0.66365 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,626 | test__mysql.py | PyMySQL_mysqlclient/tests/test__mysql.py | import pytest
from MySQLdb import _mysql
def test_result_type():
with pytest.raises(TypeError):
_mysql.result(b"xyz")
| 132 | Python | .py | 5 | 22.6 | 34 | 0.728 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,627 | conf.py | PyMySQL_mysqlclient/doc/conf.py | #
# MySQLdb documentation build configuration file, created by
# sphinx-quickstart on Sun Oct 07 19:36:17 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values ha... | 8,026 | Python | .py | 186 | 41.241935 | 80 | 0.715498 | PyMySQL/mysqlclient | 2,442 | 433 | 13 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,628 | create-address-db.py | gurnec_btcrecover/create-address-db.py | #!/usr/bin/env python
# create-address-db.py -- Bitcoin address database creator for seedrecover
# Copyright (C) 2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publis... | 3,211 | Python | .py | 60 | 48.4 | 158 | 0.706748 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,629 | seedrecover.py | gurnec_btcrecover/seedrecover.py | #!/usr/bin/env python
# seedrecover.py -- Bitcoin mnemonic sentence recovery tool
# Copyright (C) 2014-2017 Christopher Gurnee
#
# 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 ver... | 2,356 | Python | .py | 47 | 44.617021 | 98 | 0.710838 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,630 | run-all-tests.py | gurnec_btcrecover/run-all-tests.py | #!/usr/bin/env python
# run-all-tests.py -- runs *all* btcrecover tests
# Copyright (C) 2016, 2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 Sof... | 5,917 | Python | .py | 126 | 39.269841 | 113 | 0.649608 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,631 | btcrecoveru.py | gurnec_btcrecover/btcrecoveru.py | #!/usr/bin/env python
# for backwards compatibility
import sys, os
print >> sys.stderr, "notice: you can also run 'btcrecover.py --utf8' instead of 'btcrecoveru.py'"
sys.argv.append("--utf8")
execfile(os.path.join(os.path.dirname(__file__), "btcrecover.py"))
| 259 | Python | .py | 6 | 42.166667 | 98 | 0.735178 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,632 | btcrecover.py | gurnec_btcrecover/btcrecover.py | #!/usr/bin/env python
# btcrecover.py -- Bitcoin wallet password recovery tool
# Copyright (C) 2014-2017 Christopher Gurnee
#
# 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 ... | 2,123 | Python | .py | 45 | 43.377778 | 110 | 0.715392 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,633 | extract-bitcoincore-mkey.py | gurnec_btcrecover/extract-scripts/extract-bitcoincore-mkey.py | #!/usr/bin/env python
# extract-bitcoincore-mkey.py -- Bitcoin wallet master key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by t... | 2,936 | Python | .py | 57 | 49.210526 | 105 | 0.734124 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,634 | download-blockchain-wallet.py | gurnec_btcrecover/extract-scripts/download-blockchain-wallet.py | #!/usr/bin/env python
# download-blockchain-wallet.py -- Blockchain.info wallet file downloader
# Copyright (C) 2016, 2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as p... | 4,532 | Python | .py | 107 | 37.149533 | 118 | 0.677927 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,635 | extract-multibit-hd-data.py | gurnec_btcrecover/extract-scripts/extract-multibit-hd-data.py | #!/usr/bin/env python
# extract-electrum-partmpk.py -- MultiBit HD first block extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the... | 1,801 | Python | .py | 40 | 43.35 | 103 | 0.749714 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,636 | extract-bitcoincore-mkey-from-pywallet.py | gurnec_btcrecover/extract-scripts/extract-bitcoincore-mkey-from-pywallet.py | #!/usr/bin/env python
# extract-bitcoincore-mkey.py -- Bitcoin wallet master key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by t... | 4,371 | Python | .py | 82 | 50.439024 | 115 | 0.726592 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,637 | extract-blockchain-main-data.py | gurnec_btcrecover/extract-scripts/extract-blockchain-main-data.py | #!/usr/bin/env python
# extract-blockchain-main-data.py -- Blockchain data extractor
# Copyright (C) 2014-2016 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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... | 3,546 | Python | .py | 74 | 44.256757 | 107 | 0.72338 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,638 | extract-multibit-privkey.py | gurnec_btcrecover/extract-scripts/extract-multibit-privkey.py | #!/usr/bin/env python
# extract-multibit-privkey.py -- MultiBit private key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Fr... | 2,843 | Python | .py | 57 | 46.684211 | 108 | 0.723044 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,639 | extract-blockchain-second-hash.py | gurnec_btcrecover/extract-scripts/extract-blockchain-second-hash.py | #!/usr/bin/env python
# extract-blockchain-second-hash.py -- Blockchain second password hash extractor
# Copyright (C) 2014-2016 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as pub... | 10,075 | Python | .py | 176 | 51.193182 | 139 | 0.685859 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,640 | extract-armory-privkey.py | gurnec_btcrecover/extract-scripts/extract-armory-privkey.py | #!/usr/bin/env python
# extract-armory-privkey.py -- Armory private key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 S... | 5,749 | Python | .py | 114 | 46.078947 | 109 | 0.69354 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,641 | extract-electrum-halfseed.py | gurnec_btcrecover/extract-scripts/extract-electrum-halfseed.py | #!/usr/bin/env python
# extract-electrum-halfseed.py -- Electrum partial seed extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the ... | 2,388 | Python | .py | 44 | 52.772727 | 117 | 0.752361 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,642 | extract-electrum2-partmpk.py | gurnec_btcrecover/extract-scripts/extract-electrum2-partmpk.py | #!/usr/bin/env python
# extract-electrum2-partmpk.py -- Electrum 2.x partial mpk extractor
# Copyright (C) 2014-2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | 7,057 | Python | .py | 134 | 42.955224 | 133 | 0.61998 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,643 | extract-msigna-partmpk.py | gurnec_btcrecover/extract-scripts/extract-msigna-partmpk.py | #!/usr/bin/env python
# extract-msigna-privkey.py -- mSIGNA private key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 S... | 3,257 | Python | .py | 67 | 46.58209 | 99 | 0.739062 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,644 | extract-bither-partkey.py | gurnec_btcrecover/extract-scripts/extract-bither-partkey.py | #!/usr/bin/env python
# extract-bither-privkey.py -- Bither private key extractor
# Copyright (C) 2016 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 Softwar... | 3,213 | Python | .py | 66 | 46.318182 | 107 | 0.728781 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,645 | exc.py | gurnec_btcrecover/passlib/exc.py | """passlib.exc -- exceptions & warnings raised by passlib"""
#=============================================================================
# exceptions
#=============================================================================
class MissingBackendError(RuntimeError):
"""Error raised if multi-backend handler ha... | 7,649 | Python | .py | 149 | 46.993289 | 84 | 0.615405 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,646 | __init__.py | gurnec_btcrecover/passlib/__init__.py | """passlib - suite of password hashing & generation routinges"""
__version__ = '1.6.2'
| 88 | Python | .py | 2 | 42.5 | 64 | 0.682353 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,647 | __init__.py | gurnec_btcrecover/passlib/utils/__init__.py | """passlib.utils -- helpers for writing password hashes"""
#=============================================================================
# imports
#=============================================================================
from passlib.utils.compat import PYPY, JYTHON
# core
from base64 import b64encode, b64decode
... | 58,457 | Python | .py | 1,396 | 34.017192 | 134 | 0.572223 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,648 | compat.py | gurnec_btcrecover/passlib/utils/compat.py | """passlib.utils.compat - python 2/3 compatibility helpers"""
#=============================================================================
# figure out what we're running
#=============================================================================
#------------------------------------------------------------------... | 13,083 | Python | .py | 355 | 31.042254 | 84 | 0.510319 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,649 | pbkdf2.py | gurnec_btcrecover/passlib/utils/pbkdf2.py | """passlib.pbkdf2 - PBKDF2 support
this module is getting increasingly poorly named.
maybe rename to "kdf" since it's getting more key derivation functions added.
"""
#=============================================================================
# imports
#==============================================================... | 14,682 | Python | .py | 357 | 34.271709 | 97 | 0.586809 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,650 | __init__.py | gurnec_btcrecover/progressbar/__init__.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# progressbar - Text progress bar library for Python.
# Copyright (c) 2005 Nilton Volpato
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; ei... | 10,090 | Python | .py | 238 | 34.415966 | 79 | 0.644005 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,651 | compat.py | gurnec_btcrecover/progressbar/compat.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# progressbar - Text progress bar library for Python.
# Copyright (c) 2005 Nilton Volpato
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; ei... | 1,476 | Python | .py | 36 | 37.277778 | 76 | 0.715481 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,652 | widgets.py | gurnec_btcrecover/progressbar/widgets.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# progressbar - Text progress bar library for Python.
# Copyright (c) 2005 Nilton Volpato
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; ei... | 9,249 | Python | .py | 219 | 34.881279 | 78 | 0.636282 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,653 | addressset.py | gurnec_btcrecover/btcrecover/addressset.py | # addressset.py -- btcrecover AddressSet library
# Copyright (C) 2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 o... | 19,929 | Python | .py | 375 | 43.104 | 138 | 0.595735 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,654 | btcrseed.py | gurnec_btcrecover/btcrecover/btcrseed.py | # btcrseed.py -- btcrecover mnemonic sentence library
# Copyright (C) 2014-2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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; eit... | 98,174 | Python | .py | 1,616 | 48.285891 | 179 | 0.6131 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,655 | btcrpass.py | gurnec_btcrecover/btcrecover/btcrpass.py | # btcrpass.py -- btcrecover main library
# Copyright (C) 2014-2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover 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 t... | 303,887 | Python | .py | 4,954 | 51.021397 | 225 | 0.636215 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,656 | wallet_pb2.py | gurnec_btcrecover/btcrecover/wallet_pb2.py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: wallet.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflec... | 50,946 | Python | .py | 1,208 | 37.337748 | 5,642 | 0.716785 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,657 | test_seeds.py | gurnec_btcrecover/btcrecover/test/test_seeds.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# test_seeds.py -- unit tests for seedrecover.py
# Copyright (C) 2014-2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as pu... | 24,741 | Python | .py | 421 | 48.517815 | 173 | 0.675785 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,658 | test_passwords.py | gurnec_btcrecover/btcrecover/test/test_passwords.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# test_passwords.py -- unit tests for btcrecover.py
# Copyright (C) 2014-2017 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publishe... | 101,971 | Python | .py | 1,675 | 51.323582 | 197 | 0.648485 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,659 | bitcoincore-pywallet-dumpwallet.txt | gurnec_btcrecover/btcrecover/test/test-wallets/bitcoincore-pywallet-dumpwallet.txt | pywallet --dumpwallet format is a text file (with Windows or UNIX style line endings)
containing a possibly ill-formed JSON object, such as this one.
For testing purposes, the text 'nDerivation', which is used as a search term,
is split across a 16kB boundary.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 16,621 | Python | .py | 138 | 117.934783 | 127 | 0.982094 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,660 | cfb_mode.py | gurnec_btcrecover/aespython/cfb_mode.py | #!/usr/bin/env python
"""
CFB Mode of operation
Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
Copyright (c) 2010, Adam Newman http://www.caller9.com/
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
"""
__all__ = "CFBMode",
from . impor... | 1,103 | Python | .py | 20 | 50.5 | 115 | 0.692022 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,661 | aes_cipher.py | gurnec_btcrecover/aespython/aes_cipher.py | #!/usr/bin/env python
"""
AES Block Cipher.
Performs single block cipher decipher operations on a 16 element list of integers.
These integers represent 8 bit bytes in a 128 bit block.
The result of cipher or decipher operations is the transformed 16 element list of integers.
Algorithm per NIST FIPS-197 http://csrc.ni... | 3,399 | Python | .py | 39 | 80.512821 | 507 | 0.603397 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,662 | key_expander.py | gurnec_btcrecover/aespython/key_expander.py | """
AES Key Expansion
Expands 128, 192, or 256 bit key for use with AES
Algorithm per NIST FIPS-197 http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
Copyright (c) 2010, Adam Newman http://www.caller9.com
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
"""
__all__ = "expan... | 3,490 | Python | .py | 92 | 27.630435 | 100 | 0.535062 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,663 | ofb_mode.py | gurnec_btcrecover/aespython/ofb_mode.py | """
OFB Mode of operation
Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
Copyright (c) 2010, Adam Newman http://www.caller9.com/
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
"""
__all__ = "OFBMode",
from . import Mode
class OFBMode(... | 1,065 | Python | .py | 18 | 54.666667 | 110 | 0.69636 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,664 | __init__.py | gurnec_btcrecover/aespython/__init__.py | __all__ = 'AESCipher','expandKey','Mode','CBCMode','CBCMode','CFBMode','OFBMode'
class Mode:
__slots__ = "_iv", "_block_cipher"
def __init__(self, block_cipher, block_size):
self._block_cipher = block_cipher
self._iv = bytearray(block_size)
def set_iv(self, iv):
if len(iv) == len(s... | 516 | Python | .py | 14 | 32.285714 | 80 | 0.658 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,665 | aes_tables.py | gurnec_btcrecover/aespython/aes_tables.py | """
AES lookup tables
Copyright (c) 2010,Adam Newman http://www.caller9.com/
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
"""
__all__ = "rcon", "sbox", "i_sbox", "galNI", "galI"
rcon=(
0x8d,0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,
0x2f,0x5e,0xbc,0... | 11,924 | Python | .py | 155 | 75.929032 | 81 | 0.797179 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,666 | cbc_mode.py | gurnec_btcrecover/aespython/cbc_mode.py | """
CBC Mode of operation
Algorithm per NIST SP 800-38A http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
Copyright (c) 2010, Adam Newman http://www.caller9.com/
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php
"""
__all__ = "CBCMode",
from . import Mode
class CBCMode(... | 1,104 | Python | .py | 20 | 50.15 | 150 | 0.688601 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,667 | extract-bitcoincore-mkey-from-pywallet.py | gurnec_btcrecover/extract-scripts/extract-bitcoincore-mkey-from-pywallet.py | #!/usr/bin/env python
# extract-bitcoincore-mkey.py -- Bitcoin wallet master key extractor
# Copyright (C) 2014, 2015 Christopher Gurnee
#
# This file is part of btcrecover.
#
# btcrecover is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by t... | 4,371 | Python | .pyw | 82 | 50.439024 | 115 | 0.726592 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,668 | bitcoincore-pywallet-dumpwallet.txt | gurnec_btcrecover/btcrecover/test/test-wallets/bitcoincore-pywallet-dumpwallet.txt | pywallet --dumpwallet format is a text file (with Windows or UNIX style line endings)
containing a possibly ill-formed JSON object, such as this one.
For testing purposes, the text 'nDerivation', which is used as a search term,
is split across a 16kB boundary.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 16,621 | Python | .pyw | 138 | 117.934783 | 127 | 0.982094 | gurnec/btcrecover | 1,261 | 675 | 358 | GPL-2.0 | 9/5/2024, 5:15:21 PM (Europe/Amsterdam) |
36,669 | prefs.py | domlysz_BlenderGIS/prefs.py | import json
import logging
log = logging.getLogger(__name__)
import sys, os
import bpy
from bpy.props import StringProperty, IntProperty, FloatProperty, BoolProperty, EnumProperty, FloatVectorProperty
from bpy.types import Operator, Panel, AddonPreferences
import addon_utils
from . import bl_info
from .core.proj.repr... | 28,302 | Python | .py | 700 | 37.658571 | 234 | 0.728982 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,670 | __init__.py | domlysz_BlenderGIS/__init__.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your option) any later version.
#... | 13,153 | Python | .py | 350 | 34.128571 | 139 | 0.730226 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,671 | geoscene.py | domlysz_BlenderGIS/geoscene.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This... | 24,455 | Python | .py | 692 | 32.528902 | 110 | 0.726969 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,672 | QtMapServiceClient.py | domlysz_BlenderGIS/clients/QtMapServiceClient.py | # -*- coding:utf-8 -*-
import sys, os, time
import sys, os
sys.path.append(os.path.abspath('..'))
from PyQt4 import QtGui, QtCore, uic
import threading
import tempfile
from core.basemaps import GRIDS, SOURCES, MapService, BBoxRequest, BBoxRequestMZ
from core.lib import shapefile
from core.proj import reprojPts
from ... | 11,832 | Python | .py | 340 | 31.629412 | 134 | 0.751248 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,673 | io_import_shp.py | domlysz_BlenderGIS/operators/io_import_shp.py | # -*- coding:utf-8 -*-
import os, sys, time
import bpy
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
from bpy.types import Operator
import bmesh
import math
from mathutils import Vector
import logging
log = logging.getLogger(__name__)
from ..core.lib.shapefile import Reader as shpReade... | 23,466 | Python | .py | 625 | 33.4272 | 164 | 0.709662 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,674 | add_camera_georef.py | domlysz_BlenderGIS/operators/add_camera_georef.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This... | 6,430 | Python | .py | 169 | 34.95858 | 163 | 0.717706 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,675 | nodes_terrain_analysis_builder.py | domlysz_BlenderGIS/operators/nodes_terrain_analysis_builder.py | # -*- coding:utf-8 -*-
import math
import bpy
from bpy.types import Panel, Operator
import logging
log = logging.getLogger(__name__)
from .utils import getBBOX
from ..core.maths.interpo import scale
class TERRAIN_ANALYSIS_OT_build_nodes(Operator):
'''Create material node thee to analysis height, slope and aspect'... | 15,209 | Python | .py | 359 | 39.314763 | 111 | 0.734767 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,676 | io_import_osm.py | domlysz_BlenderGIS/operators/io_import_osm.py | import os
import time
import json
import random
import logging
log = logging.getLogger(__name__)
import bpy
import bmesh
from bpy.types import Operator, Panel, AddonPreferences
from bpy.props import StringProperty, IntProperty, FloatProperty, BoolProperty, EnumProperty, FloatVectorProperty
from .lib.osm import overp... | 19,351 | Python | .py | 544 | 31.049632 | 198 | 0.678554 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,677 | view3d_mapviewer.py | domlysz_BlenderGIS/operators/view3d_mapviewer.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This... | 32,850 | Python | .py | 855 | 34.299415 | 126 | 0.698063 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,678 | add_camera_exif.py | domlysz_BlenderGIS/operators/add_camera_exif.py | # -*- coding:utf-8 -*-
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This... | 10,540 | Python | .py | 248 | 33.112903 | 202 | 0.608113 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,679 | __init__.py | domlysz_BlenderGIS/operators/__init__.py | __all__ = ["add_camera_exif", "add_camera_georef", "io_export_shp", "io_get_srtm", "io_import_georaster", "io_import_osm", "io_import_shp", "io_import_asc", "mesh_delaunay_voronoi", "nodes_terrain_analysis_builder", "nodes_terrain_analysis_reclassify", "view3d_mapviewer", "object_drop", "mesh_earth_sphere"]
| 309 | Python | .py | 1 | 308 | 308 | 0.704545 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,680 | mesh_earth_sphere.py | domlysz_BlenderGIS/operators/mesh_earth_sphere.py | import bpy
from bpy.types import Operator
from bpy.props import IntProperty
from math import cos, sin, radians, sqrt
from mathutils import Vector
import logging
log = logging.getLogger(__name__)
def lonlat2xyz(R, lon, lat):
lon, lat = radians(lon), radians(lat)
x = R * cos(lat) * cos(lon)
y = R * cos(lat) * sin(... | 2,786 | Python | .py | 83 | 30.445783 | 104 | 0.713271 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,681 | mesh_delaunay_voronoi.py | domlysz_BlenderGIS/operators/mesh_delaunay_voronoi.py | # -*- coding:utf-8 -*-
#import DelaunayVoronoi
import bpy
import time
from .utils import computeVoronoiDiagram, computeDelaunayTriangulation
from ..core.utils import perf_clock
try:
from mathutils.geometry import delaunay_2d_cdt
except ImportError:
NATIVE = False
else:
NATIVE = True
import logging
log = logging.ge... | 8,763 | Python | .py | 222 | 36.378378 | 307 | 0.709091 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,682 | io_import_georaster.py | domlysz_BlenderGIS/operators/io_import_georaster.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your o... | 16,689 | Python | .py | 442 | 34.004525 | 168 | 0.708323 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,683 | nodes_terrain_analysis_reclassify.py | domlysz_BlenderGIS/operators/nodes_terrain_analysis_reclassify.py | # -*- coding:utf-8 -*-
import os
import math
import bpy
from mathutils import Vector
from bpy.props import StringProperty, IntProperty, FloatProperty, BoolProperty, EnumProperty, CollectionProperty, FloatVectorProperty
from bpy.types import PropertyGroup, UIList, Panel, Operator
from bpy.app.handlers import persiste... | 30,366 | Python | .py | 883 | 31.062288 | 133 | 0.709635 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,684 | object_drop.py | domlysz_BlenderGIS/operators/object_drop.py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 program is distrib... | 5,861 | Python | .py | 144 | 31.319444 | 148 | 0.595569 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,685 | io_import_asc.py | domlysz_BlenderGIS/operators/io_import_asc.py | # Derived from https://github.com/hrbaer/Blender-ASCII-Grid-Import
import re
import os
import string
import bpy
import math
import string
import logging
log = logging.getLogger(__name__)
from bpy_extras.io_utils import ImportHelper #helper class defines filename and invoke() function which calls the file selector
fr... | 12,022 | Python | .py | 265 | 34.883019 | 164 | 0.591906 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,686 | io_export_shp.py | domlysz_BlenderGIS/operators/io_export_shp.py | # -*- coding:utf-8 -*-
import os
import bpy
import bmesh
import mathutils
import logging
log = logging.getLogger(__name__)
from ..core.lib.shapefile import Writer as shpWriter
from ..core.lib.shapefile import POINTZ, POLYLINEZ, POLYGONZ, MULTIPOINTZ
from bpy_extras.io_utils import ExportHelper #helper class defines ... | 8,129 | Python | .py | 227 | 31.400881 | 164 | 0.685096 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,687 | io_get_dem.py | domlysz_BlenderGIS/operators/io_get_dem.py | import os
import time
import logging
log = logging.getLogger(__name__)
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
import bpy
import bmesh
from bpy.types import Operator, Panel, AddonPreferences
from bpy.props import StringProperty, IntProperty, FloatProperty, BoolPropert... | 5,855 | Python | .py | 144 | 37.333333 | 139 | 0.730762 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,688 | nominatim.py | domlysz_BlenderGIS/operators/lib/osm/nominatim.py | import os, ssl
import logging
log = logging.getLogger(__name__)
import json
from urllib.request import urlopen
from urllib.request import Request
from urllib.parse import quote_plus
TIMEOUT = 2
def nominatimQuery(
query,
base_url = 'https://nominatim.openstreetmap.org/',
referer = None,
user_agent ... | 823 | Python | .py | 28 | 25 | 58 | 0.66199 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,689 | __about__.py | domlysz_BlenderGIS/operators/lib/osm/overpy/__about__.py | __all__ = [
"__author__",
"__copyright__",
"__email__",
"__license__",
"__summary__",
"__title__",
"__uri__",
"__version__",
]
__title__ = "overpy"
__summary__ = "Python Wrapper to access the OpenStreepMap Overpass API"
__uri__ = "https://github.com/DinoTools/python-overpy"
__version__... | 455 | Python | .py | 18 | 22.277778 | 71 | 0.540416 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,690 | exception.py | domlysz_BlenderGIS/operators/lib/osm/overpy/exception.py | class OverPyException(BaseException):
"""OverPy base exception"""
pass
class DataIncomplete(OverPyException):
"""
Raised if the requested data isn't available in the result.
Try to improve the query or to resolve the missing data.
"""
def __init__(self, *args, **kwargs):
OverPyExce... | 3,031 | Python | .py | 85 | 28.8 | 91 | 0.643639 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,691 | __init__.py | domlysz_BlenderGIS/operators/lib/osm/overpy/__init__.py | from collections import OrderedDict
from decimal import Decimal
import re
import sys
import os
from . import exception
from .__about__ import (
__author__, __copyright__, __email__, __license__, __summary__, __title__,
__uri__, __version__
)
import xml.etree.ElementTree as ET
import json
PY2 = sys.version_in... | 32,773 | Python | .py | 826 | 28.937046 | 134 | 0.571046 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,692 | helper.py | domlysz_BlenderGIS/operators/lib/osm/overpy/helper.py | __author__ = 'mjob'
import overpy
def get_street(street, areacode, api=None):
"""
Retrieve streets in a given bounding area
:param overpy.Overpass api: First street of intersection
:param String street: Name of street
:param String areacode: The OSM id of the bounding area
:return: Parsed re... | 1,724 | Python | .py | 51 | 26.588235 | 71 | 0.619277 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,693 | georaster_utils.py | domlysz_BlenderGIS/operators/utils/georaster_utils.py | # -*- coding:utf-8 -*-
# This file is part of BlenderGIS
# ***** GPL LICENSE BLOCK *****
#
# 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 3 of the License, or
# (at your o... | 13,223 | Python | .py | 334 | 36.508982 | 137 | 0.697288 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,694 | delaunay_voronoi.py | domlysz_BlenderGIS/operators/utils/delaunay_voronoi.py | # -*- coding: utf-8 -*-
#############################################################################
#
# Voronoi diagram calculator/ Delaunay triangulator
#
# - Voronoi Diagram Sweepline algorithm and C code by Steven Fortune, 1987, http://ect.bell-labs.com/who/sjf/
# - Python translation to file voronoi.py by Bill S... | 30,560 | Python | .py | 848 | 32.583726 | 138 | 0.673121 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,695 | __init__.py | domlysz_BlenderGIS/operators/utils/__init__.py | from .bgis_utils import placeObj, adjust3Dview, showTextures, addTexture, getBBOX, DropToGround, mouseTo3d, isTopView
from .georaster_utils import rasterExtentToMesh, geoRastUVmap, setDisplacer, bpyGeoRaster, exportAsMesh
from .delaunay_voronoi import computeVoronoiDiagram, computeDelaunayTriangulation
| 304 | Python | .py | 3 | 100.333333 | 117 | 0.870432 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,696 | bgis_utils.py | domlysz_BlenderGIS/operators/utils/bgis_utils.py |
import bpy
from mathutils import Vector, Matrix
from mathutils.bvhtree import BVHTree
from bpy_extras.view3d_utils import region_2d_to_location_3d, region_2d_to_vector_3d
from ...core import BBOX
def isTopView(context):
if context.area.type == 'VIEW_3D':
reg3d = context.region_data
else:
return False
return r... | 7,102 | Python | .py | 194 | 33.639175 | 146 | 0.719245 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,697 | errors.py | domlysz_BlenderGIS/core/errors.py |
class OverlapError(Exception):
def __init__(self):
pass
def __str__(self):
return "Non overlap data"
class ReprojError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
| 236 | Python | .py | 10 | 21 | 30 | 0.698198 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,698 | settings.py | domlysz_BlenderGIS/core/settings.py | # -*- coding:utf-8 -*-
import os
import json
from .checkdeps import HAS_GDAL, HAS_PYPROJ, HAS_IMGIO, HAS_PIL
def getAvailableProjEngines():
engines = ['AUTO', 'BUILTIN']
#if EPSGIO.ping():
engines.append('EPSGIO')
if HAS_GDAL:
engines.append('GDAL')
if HAS_PYPROJ:
engines.append('PYPROJ')
return engines
de... | 1,267 | Python | .py | 49 | 23.306122 | 66 | 0.725914 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |
36,699 | checkdeps.py | domlysz_BlenderGIS/core/checkdeps.py | import logging
log = logging.getLogger(__name__)
#GDAL
try:
from osgeo import gdal
except:
HAS_GDAL = False
log.debug('GDAL Python binding unavailable')
else:
HAS_GDAL = True
log.debug('GDAL Python binding available')
#PyProj
try:
import pyproj
except:
HAS_PYPROJ = False
log.debug('PyProj unavailable')
else:... | 848 | Python | .py | 39 | 20.025641 | 78 | 0.784289 | domlysz/BlenderGIS | 7,599 | 1,342 | 245 | GPL-3.0 | 9/5/2024, 5:15:29 PM (Europe/Amsterdam) |