I hereby claim:
- I am nabilm on github.
- I am nabilm (https://keybase.io/nabilm) on keybase.
- I have a public key ASATxVSrTncc4nzeyyZVCgKaDSSBkfRQ9uwtNMBKM2-uywo
To claim this, I am signing this object:
| .box | |
| .side | |
| .side | |
| .side | |
| .side | |
| .side | |
| .side | |
| .lid | |
| .front | |
| .back |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| $brew install tesseract | |
| $pip install pytesseract | |
| $pip install Pillow | |
| $pip install expynent | |
| ``` | |
| from pytesseract import image_to_string | |
| import pytesseract | |
| from PIL import Image |
| """ | |
| Since the async support in neo4j python driver is not clear ( released ) yet | |
| i create a simple async class that wrap up neo4j write and read transaction functions | |
| to run this class simple | |
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| config = {'user': 'neo4j' , 'password' : 'test' , 'uri' : 'bolt://localhost:7687'} | |
| an = AsyncNeo4j(config=config, loop=loop) | |
| and of course it require python3.7 and neo4j | |
| now you should easily create queries with dynamic variables like |
| import apache_beam as beam | |
| class Dedupe(beam.PTransform): | |
| """ | |
| A substitute to distinct that accept list of fields | |
| to highlight this distinction | |
| """ | |
| def __init__(self, dedupe_keys=[]): |
| """ | |
| Can be called like this: | |
| emails_list = [ | |
| ('amy', '[email protected]'), | |
| ('carl', '[email protected]'), | |
| ('julia', '[email protected]'), | |
| ('carl', '[email protected]'), | |
| ] | |
| | "create" >> beam.Create(emails_list) | |
| | "write to google storage" >> WriteToText("gs://<bucket>/bq_load/file") |