Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2 - python 3 compatibility #30

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
f5cfb31
add a gitignore file
sjhewitt Sep 27, 2018
d5d21e7
move files into pybase module, use setuptools rather than distutils
sjhewitt Sep 27, 2018
c49eba6
sort imports
sjhewitt Sep 27, 2018
1b190ad
flake8 everything
sjhewitt Sep 27, 2018
34fb200
fix imports, python3 compat
sjhewitt Sep 27, 2018
57e06f9
bump to 0.2
sjhewitt Oct 12, 2018
c49c2ac
add classifiers
sjhewitt Oct 12, 2018
387057e
add bdist_wheel config
sjhewitt Oct 12, 2018
ade95d0
use BytesIO, not StringIO
sjhewitt Oct 12, 2018
91a3c02
convert everything to byte string/unicode literals
sjhewitt Oct 12, 2018
cad6bba
make all classes subclass object
sjhewitt Nov 1, 2018
d1fa3f5
tidy up loggers
sjhewitt Nov 1, 2018
f886b27
v0.2.1
sjhewitt Nov 1, 2018
8d258b0
update intervaltree version
sjhewitt Dec 18, 2018
5279c60
use bytes
sjhewitt Feb 21, 2019
d0b9cd2
a lot of bytes/unicode mangling and updating protobufs decoder
Arnie0426 Feb 22, 2019
dc1731e
commit new protobuf encoders and lint
Arnie0426 Feb 22, 2019
e93a649
address code review
Arnie0426 Feb 22, 2019
0c411e8
increment version to 0.3.1
Arnie0426 Feb 22, 2019
d9c9187
Merge pull request #1 from Flipboard/ab_make_pybase_python3_compatible
Arnie0426 Feb 22, 2019
bfcb14c
python 2 compatibility -- %b doesnt exist in python2
Arnie0426 Feb 25, 2019
fd3fb24
Merge pull request #2 from Flipboard/ab_make_pybase_py2_compatible
sjhewitt Feb 25, 2019
02b7412
bump version
sjhewitt Feb 25, 2019
9ccb943
py2/py3 compat for exception re-raising
sjhewitt Feb 26, 2019
679c44e
fix byte/str encoding in exception classes
sjhewitt Feb 27, 2019
8deb461
Merge pull request #4 from Flipboard/sjh-exception-encoding
sjhewitt Feb 27, 2019
09537af
maybe patch deadlock that's plaguing flavour
mcvlad Jun 16, 2020
1b8ca5c
increment version
mcvlad Jun 16, 2020
a773ed1
more lock timeouts
mcvlad Jun 17, 2020
42a48d7
this got stuck too
mcvlad Nov 17, 2020
c8ee9c7
Fix reference to undeclared var
ianbishop Aug 19, 2021
eb3ca2b
Merge pull request #7 from Flipboard/fix-new-region
ianbishop Aug 19, 2021
da6747a
Merge pull request #5 from Flipboard/mvc_patch_deadlock
ianbishop Aug 20, 2021
eacdbab
Think I got everything
ianbishop Aug 20, 2021
d1480b9
Merge pull request #8 from Flipboard/ibishop/secondary-no-sleep
ianbishop Aug 23, 2021
70706b3
Missed one
ianbishop Aug 23, 2021
2508c89
Remove optional main client param
ianbishop Aug 23, 2021
448d388
Fix locking
ianbishop Sep 1, 2021
319ddab
Merge pull request #9 from Flipboard/ibishop/fix-locking
ianbishop Sep 1, 2021
2a1f3f9
Add zk watch for master connection
ianbishop Oct 16, 2021
36a6d63
Switch to using datawatch recipe for watch re-registry
ianbishop Oct 16, 2021
b22d034
Handle delete event & add conditional wait
ianbishop Oct 19, 2021
9df2d02
PR feedback
ianbishop Oct 19, 2021
982bdf6
Merge pull request #10 from Flipboard/ibishop/zk-watch
ianbishop Oct 19, 2021
a37a25f
Make py2 compatible plus remove some dead code
ianbishop Oct 19, 2021
fb79dbc
Merge pull request #11 from Flipboard/ibishop/zk-watch
ianbishop Oct 19, 2021
9cdd49f
Fix bytes string host
ianbishop Aug 16, 2022
83161dd
Merge pull request #12 from Flipboard/ibishop/fix-gevent
ianbishop Aug 16, 2022
643371a
Use native str for region_client exceptions (#13)
ciwasaki Oct 6, 2022
8f39ac0
using a ThreadPoolExecutor with matching number of works to socket po…
zacharyp May 19, 2023
9ea538f
removing more unneeded code
zacharyp May 20, 2023
2776bd2
send in the try block... where it belongs
zacharyp May 20, 2023
56bf755
switching send_and_receive_rpc to not be static
zacharyp May 24, 2023
99af621
receive_rpc will call itself if the call_id was not the same as the send
zacharyp May 24, 2023
7653872
comment cleanup
zacharyp May 24, 2023
2497c65
adding call_timeout parameter to Client constructor
zacharyp May 24, 2023
6886130
updating version to 4.0.0
zacharyp May 24, 2023
58cf1e1
Merge pull request #14 from Flipboard/zpitts/FL-32990-using-ThreadPoo…
zacharyp May 24, 2023
983e011
Add support for `get_many`
ianbishop Feb 12, 2024
40486fe
bump
ianbishop Feb 13, 2024
dce584f
Fix typo
ianbishop Feb 15, 2024
a059db7
Pass entire result into Result
ianbishop Feb 15, 2024
cea2dc6
Fix parse_exception
ianbishop Feb 15, 2024
f747c2e
Use threadpool sanely, order reqs correctly
ianbishop Feb 16, 2024
393cb97
Merge pull request #16 from Flipboard/ibishop/support-multi
ianbishop Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

.idea
2 changes: 0 additions & 2 deletions __init__.py

This file was deleted.

3 changes: 0 additions & 3 deletions helpers/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions pybase/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .client import NewClient # noqa
Loading