Giter Club home page Giter Club logo

flowroute-sdk-v3-python's People

Contributors

bermudezmt avatar clacina avatar dependabot[bot] avatar iwilli avatar kevinhippert avatar kurtabersold avatar syntaxintact avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flowroute-sdk-v3-python's Issues

api_helper.py Equality check issue with "is" vs "=="

There are some equality check SyntaxWarnings, which end up taking up space in the logs on each run:

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:128: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	if formatting is "unindexed":

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:130: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	elif formatting is "indexed":

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:132: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	elif formatting is "plain":

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:203: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	if array_serialization is "csv":

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:206: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	elif array_serialization is "psv":

2022-04-02T11:54:13.750-04:00	/opt/python/lib/python3.9/site-packages/flowroutenumbersandmessaging/api_helper.py:209: SyntaxWarning: "is" with a literal. Did you mean "=="?

2022-04-02T11:54:13.750-04:00	elif array_serialization is "tsv":

Simple fix -- replace all of the is on listed lines in api_helper.py (lines: 128, 130, 132, 203, 206, 209) with ==

Urllib2 is not in Python3

Urllib2 is not in python3.

File "c:\flask\unifymn\venv\lib\site-packages\flowroutenumbersandmessaging\controllers\cdrs_controller.py", line 13, in <module> import urllib2 ModuleNotFoundError: No module named 'urllib2'

No module named...

Would suggest instead of "import StringIO" in cdrs_controller.py

try:
from StringIO import StringIO ## for Python 2
except ImportError:
from io import StringIO ## for Python 3

And instead of "import urllib2" in cdrs_controller.py

try:
from urllib.request import urlopen #For Python 3.0 and later
except ImportError:
from urllib2 import urlopen #For Python 2's urllib2

Does not support python 3

Poster and Unirest are no longer supported unless you're using python 2. If you guys could please update that. You can use poster3==0.8.1 and requests==2.7.0 as replacements which work for python 3

StringIO not in Python3

StringIO is not in Python3.
It is now in the io library

File "c:\flask\unifymn\venv\lib\site-packages\flowroutenumbersandmessaging\controllers\cdrs_controller.py", line 11, in <module> import StringIO ModuleNotFoundError: No module named 'StringIO'

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.