Git Product home page Git Product logo

eng_dictionary's Introduction

Hey ๐Ÿ‘‹ I'm Sourab

A Software Engineer who has spent about 9 years in building scalable backend solutions and currently working for AB-InBev

  • โšก I write on Technical topics on: Blogs On Computer Science
  • ๐Ÿ’ฌ Ask me about: Python, Flask, Data Structures & Algorithms or Design Patterns.
  • ๐Ÿ“ซ How to reach me: Mail, LinkedIn

Looking forward to build projects to experience a broad range of technical challenges and discovering solutions to them.

eng_dictionary's People

Contributors

sharmasourab93 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

08thanu

eng_dictionary's Issues

Connection error

Hey, it is showing me a connection error when I run it.. Please help...

`Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1336, in getresponse
response.begin()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 306, in begin
version, status, reason = self._read_status()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 727, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\retry.py", line 403, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\packages\six.py", line 734, in reraise
raise value.with_traceback(tb)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1336, in getresponse
response.begin()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 306, in begin
version, status, reason = self._read_status()
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\dictionary\browse_meaning.py", line 25, in search
raw_data = get(url)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 665, in send
history = [resp for resp in gen] if allow_redirects else []
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 665, in
history = [resp for resp in gen] if allow_redirects else []
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 245, in resolve_redirects
**adapter_kwargs
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<pyshell#5>", line 1, in
print(obj.search('wheel'))
File "C:\Users\LENOVO\AppData\Local\Programs\Python\Python37\lib\site-packages\dictionary\browse_meaning.py", line 41, in search
raise ConnectionError("Connection Error")
requests.exceptions.ConnectionError: Connection Error`

DB Connection Can be made Dynamic

Issue:

  1. Unable to extend with different databases. Only restricted to SQLITE3.

Requirement:

  1. Make the database extendable with MySQL or MongoDB. (based on the configs provided, default to sqlite3)

Details & Ideas:

  1. The db_conn module could have a configs accepting conditions like:
    a. Accept configs passed manually.
    b. Accept configs.yaml file with DB connection details
    c. Default to sqlite3 if none of the options are provided.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.