workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
as there’s ‘>=’
2019-05-22T16:43:41.079100
Gisela
pythondev_help_Gisela_2019-05-22T16:43:41.079100
1,558,543,421.0791
24,921
pythondev
help
Is it ok to fetch and parse an RSS feed in short time intervals? Is it harmful for the RSS link provider?
2019-05-22T16:43:42.079200
Krystal
pythondev_help_Krystal_2019-05-22T16:43:42.079200
1,558,543,422.0792
24,922
pythondev
help
you want `__ge__` then, right?
2019-05-22T16:44:44.079700
Karoline
pythondev_help_Karoline_2019-05-22T16:44:44.079700
1,558,543,484.0797
24,923
pythondev
help
yes - didn’t work, but I’ll double check, although I did not add `__eq__` there
2019-05-22T16:45:08.080100
Gisela
pythondev_help_Gisela_2019-05-22T16:45:08.080100
1,558,543,508.0801
24,924
pythondev
help
there's some discussion here: <https://docs.python.org/3/library/unittest.mock.html#magic-mock>
2019-05-22T16:45:28.080300
Karoline
pythondev_help_Karoline_2019-05-22T16:45:28.080300
1,558,543,528.0803
24,925
pythondev
help
with some examples. should work.
2019-05-22T16:45:37.080700
Karoline
pythondev_help_Karoline_2019-05-22T16:45:37.080700
1,558,543,537.0807
24,926
pythondev
help
thx :slightly_smiling_face:
2019-05-22T16:51:30.081500
Gisela
pythondev_help_Gisela_2019-05-22T16:51:30.081500
1,558,543,890.0815
24,927
pythondev
help
and regarding way of testing with something like a “record”?
2019-05-22T16:52:06.082300
Gisela
pythondev_help_Gisela_2019-05-22T16:52:06.082300
1,558,543,926.0823
24,928
pythondev
help
is there a lib like that for sqlalchemy? Like `betamax`?
2019-05-22T16:52:54.083100
Gisela
pythondev_help_Gisela_2019-05-22T16:52:54.083100
1,558,543,974.0831
24,929
pythondev
help
maybe, but I'm not sure how much of a good idea that is. isolate that code and mock it at the boundaries of tests for your business logic, and test it in integration tests against a real database.
2019-05-22T16:54:13.084600
Karoline
pythondev_help_Karoline_2019-05-22T16:54:13.084600
1,558,544,053.0846
24,930
pythondev
help
a unittest of basically sqlalchemy code is just testing that sqlalchemy works.
2019-05-22T16:54:28.085000
Karoline
pythondev_help_Karoline_2019-05-22T16:54:28.085000
1,558,544,068.085
24,931
pythondev
help
you know that - what you want to know is if everything works at the integration points
2019-05-22T16:54:53.085400
Karoline
pythondev_help_Karoline_2019-05-22T16:54:53.085400
1,558,544,093.0854
24,932
pythondev
help
that’s true
2019-05-22T16:57:18.085600
Gisela
pythondev_help_Gisela_2019-05-22T16:57:18.085600
1,558,544,238.0856
24,933
pythondev
help
implementing `__le__` worked, I had to double check the `return_value....__le__` path :slightly_smiling_face:
2019-05-22T16:58:36.087200
Gisela
pythondev_help_Gisela_2019-05-22T16:58:36.087200
1,558,544,316.0872
24,934
pythondev
help
ah yeah it can always be tricky to make sure you have it all just right
2019-05-22T16:59:19.087800
Karoline
pythondev_help_Karoline_2019-05-22T16:59:19.087800
1,558,544,359.0878
24,935
pythondev
help
thanks again
2019-05-22T16:59:47.088000
Gisela
pythondev_help_Gisela_2019-05-22T16:59:47.088000
1,558,544,387.088
24,936
pythondev
help
np
2019-05-22T17:00:11.088600
Karoline
pythondev_help_Karoline_2019-05-22T17:00:11.088600
1,558,544,411.0886
24,937
pythondev
help
Hi I have a beginner question on object comparisons in a class method.
2019-05-22T17:01:53.090800
Lavona
pythondev_help_Lavona_2019-05-22T17:01:53.090800
1,558,544,513.0908
24,938
pythondev
help
can anyone of you please explain how to make the comparison operation work?
2019-05-22T17:03:40.092000
Lavona
pythondev_help_Lavona_2019-05-22T17:03:40.092000
1,558,544,620.092
24,939
pythondev
help
Hi! Were you able to get through this? If not, can you print the result of request_json before doing `title = request_json['message'] `?
2019-05-22T17:03:40.092100
Adell
pythondev_help_Adell_2019-05-22T17:03:40.092100
1,558,544,620.0921
24,940
pythondev
help
Please use the snippet feature, or backticks, when sharing code. You can do so by clicking on the :heavy_plus_sign: on the left of the input box for a snippet. For more information on snippets click <https://get.slack.help/hc/en-us/articles/204145658-Create-a-snippet|here>. For more information on inline code formatting with backticks click <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#inline-code|here>.
2019-05-22T17:04:28.092300
Leana
pythondev_help_Leana_2019-05-22T17:04:28.092300
1,558,544,668.0923
24,941
pythondev
help
None
2019-05-22T17:05:41.092500
Lavona
pythondev_help_Lavona_2019-05-22T17:05:41.092500
1,558,544,741.0925
24,942
pythondev
help
this is the error TypeError: '&lt;' not supported between instances of 'Person' and 'Person'
2019-05-22T17:05:57.092900
Lavona
pythondev_help_Lavona_2019-05-22T17:05:57.092900
1,558,544,757.0929
24,943
pythondev
help
someone did: ``` from datetime import datetime def dt(u): """Return _datetime from a _unixtime value.""" return datetime.utcfromtimestamp(u) ``` … there’s a one-line way to do this right? i can’t quite figure it out
2019-05-22T17:19:12.093800
Rebecca
pythondev_help_Rebecca_2019-05-22T17:19:12.093800
1,558,545,552.0938
24,944
pythondev
help
```&gt;&gt;&gt; from datetime import datetime.utcfromtimestamp as dt File "&lt;stdin&gt;", line 1 from datetime import datetime.utcfromtimestamp as dt ^ SyntaxError: invalid syntax &gt;&gt;&gt; from datetime import utcfromtimestamp as dt Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: cannot import name utcfromtimestamp &gt;&gt;&gt; from datetime.datetime import utcfromtimestamp as dt Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named datetime ```
2019-05-22T17:19:55.094200
Rebecca
pythondev_help_Rebecca_2019-05-22T17:19:55.094200
1,558,545,595.0942
24,945
pythondev
help
the alignment from line 24 is incorrect and hence not a part of the Person class
2019-05-22T17:25:19.094700
Kami
pythondev_help_Kami_2019-05-22T17:25:19.094700
1,558,545,919.0947
24,946
pythondev
help
:sweat_smile: thank you :slightly_smiling_face:
2019-05-22T17:27:30.094900
Lavona
pythondev_help_Lavona_2019-05-22T17:27:30.094900
1,558,546,050.0949
24,947
pythondev
help
:grin:
2019-05-22T17:28:12.095100
Kami
pythondev_help_Kami_2019-05-22T17:28:12.095100
1,558,546,092.0951
24,948
pythondev
help
You can also do `return self.last_name == other.last_name` you don't need to check the comparison and then return the same statement
2019-05-22T18:10:41.095300
Clemmie
pythondev_help_Clemmie_2019-05-22T18:10:41.095300
1,558,548,641.0953
24,949
pythondev
help
One solution: `dt = __import__('datetime').datetime.utcfromtimestamp`
2019-05-22T19:06:44.095700
Sasha
pythondev_help_Sasha_2019-05-22T19:06:44.095700
1,558,552,004.0957
24,950
pythondev
help
I think that `__import__` has been deprecated in favor of the `importlib` module
2019-05-22T23:28:47.097100
Lynnette
pythondev_help_Lynnette_2019-05-22T23:28:47.097100
1,558,567,727.0971
24,951
pythondev
help
although I still use it.
2019-05-22T23:29:11.097400
Lynnette
pythondev_help_Lynnette_2019-05-22T23:29:11.097400
1,558,567,751.0974
24,952
pythondev
help
Is there a way i can check my code is Thread Safe?
2019-05-23T03:28:33.098400
Rubie
pythondev_help_Rubie_2019-05-23T03:28:33.098400
1,558,582,113.0984
24,953
pythondev
help
It will be safe, you have the GIL working for you... <https://docs.python.org/3/glossary.html#term-global-interpreter-lock>
2019-05-23T03:45:04.100200
Guillermina
pythondev_help_Guillermina_2019-05-23T03:45:04.100200
1,558,583,104.1002
24,954
pythondev
help
It won't, the GIL only protects the internal state of the interpreter. You can still have races in your python code.
2019-05-23T04:03:33.101400
Chester
pythondev_help_Chester_2019-05-23T04:03:33.101400
1,558,584,213.1014
24,955
pythondev
help
<@Rubie> unfortunately, there is no automated way. This is why threads are such a pain
2019-05-23T04:03:56.101800
Chester
pythondev_help_Chester_2019-05-23T04:03:56.101800
1,558,584,236.1018
24,956
pythondev
help
Ok I've been asked to write a program which is thread safe, is there any obvious things i should avoid?
2019-05-23T04:04:46.102300
Rubie
pythondev_help_Rubie_2019-05-23T04:04:46.102300
1,558,584,286.1023
24,957
pythondev
help
Stupid question incoming... is multithreading thread safe?
2019-05-23T04:05:37.102800
Rubie
pythondev_help_Rubie_2019-05-23T04:05:37.102800
1,558,584,337.1028
24,958
pythondev
help
it depends what you need really
2019-05-23T04:17:46.103800
Leida
pythondev_help_Leida_2019-05-23T04:17:46.103800
1,558,585,066.1038
24,959
pythondev
help
First we have to understand what's meant by "Thread Safety"
2019-05-23T04:17:52.104200
Carlee
pythondev_help_Carlee_2019-05-23T04:17:52.104200
1,558,585,072.1042
24,960
pythondev
help
from wikipedia &gt; Thread safety is a computer programming concept applicable to multi-threaded code. Thread-safe code only manipulates shared data structures in a manner that ensures that all threads behave properly and fulfill their design specifications without unintended interaction. There are various strategies for making thread-safe data structures.
2019-05-23T04:18:30.104900
Carlee
pythondev_help_Carlee_2019-05-23T04:18:30.104900
1,558,585,110.1049
24,961
pythondev
help
if you have some processing running in another thread that does not depend on any data in your main logic other than what you give it at the start and it does not need access to any shared data then its safe
2019-05-23T04:20:04.107000
Leida
pythondev_help_Leida_2019-05-23T04:20:04.107000
1,558,585,204.107
24,962
pythondev
help
as long as you dont have mutable shared state you should be fine
2019-05-23T04:20:52.108000
Leida
pythondev_help_Leida_2019-05-23T04:20:52.108000
1,558,585,252.108
24,963
pythondev
help
Thanks for the question <@Rubie> - today I learned something... Here's a good read on the topic: <https://opensource.com/article/17/4/grok-gil> &gt; So, despite the GIL, you still need locks to protect shared mutable state [if the operation is not atomic]
2019-05-23T04:21:48.109000
Guillermina
pythondev_help_Guillermina_2019-05-23T04:21:48.109000
1,558,585,308.109
24,964
pythondev
help
for example i was doing USB communications in a separate thread because it was really slow and i needed my main logic to do other stuff at the same time so i could push that USB communications into a separate thread and do other stuff until the code in the other thread was ready to give me the output
2019-05-23T04:22:31.109800
Leida
pythondev_help_Leida_2019-05-23T04:22:31.109800
1,558,585,351.1098
24,965
pythondev
help
Shared mutable state is evil
2019-05-23T04:24:00.111100
Carlee
pythondev_help_Carlee_2019-05-23T04:24:00.111100
1,558,585,440.1111
24,966
pythondev
help
so you can have multithreaded software without worries of thread safety IF the task you are trying to accomplish can be done in that way
2019-05-23T04:24:03.111300
Leida
pythondev_help_Leida_2019-05-23T04:24:03.111300
1,558,585,443.1113
24,967
pythondev
help
so your question of having been asked to write multithreaded software that is thread safe can be relatively trivial or a nightmare depending on the actual task
2019-05-23T04:24:40.112100
Leida
pythondev_help_Leida_2019-05-23T04:24:40.112100
1,558,585,480.1121
24,968
pythondev
help
Yeah i think i understand better, <@Guillermina> that article is a good source.
2019-05-23T04:27:23.113500
Rubie
pythondev_help_Rubie_2019-05-23T04:27:23.113500
1,558,585,643.1135
24,969
pythondev
help
Hi, which library should I use to convert the data ```contact_info = { "Contact Email": "<mailto:[email protected]|[email protected]>", "First Name": "mac", "Last Name": "Last Name" }``` to ```%7BFirst+Name%3Amac%2CLast+Name%3ALast+Name%2CContact+Email%3Ajai%40zoho.com%7D``` The sample result is from an api doc that I'm trying to use.
2019-05-23T04:28:44.113800
Philip
pythondev_help_Philip_2019-05-23T04:28:44.113800
1,558,585,724.1138
24,970
pythondev
help
I've tried ```import urllib.parse urllib.parse.quote(json.dumps(contact_info)) '%7B%22Contact%20Email%22%3A%20%22Ajai%40zoho.com%22%2C%20%22First%20Name%22%3A%20%22mac%22%2C%20%22Last%20Name%22%3A%20%22Last%20Name%22%7D' ```
2019-05-23T04:28:54.113900
Philip
pythondev_help_Philip_2019-05-23T04:28:54.113900
1,558,585,734.1139
24,971
pythondev
help
```json.dumps(contact_info) '{"Contact Email": "<mailto:[email protected]|[email protected]>", "First Name": "mac", "Last Name": "Last Name"}' ```
2019-05-23T04:28:59.114100
Philip
pythondev_help_Philip_2019-05-23T04:28:59.114100
1,558,585,739.1141
24,972
pythondev
help
```urllib.parse.quote(urllib.parse.urlencode(contact_info)) 'Contact%2BEmail%3DAjai%2540zoho.com%26First%2BName%3Dmac%26Last%2BName%3DLast%2BName' ```
2019-05-23T04:29:04.114300
Philip
pythondev_help_Philip_2019-05-23T04:29:04.114300
1,558,585,744.1143
24,973
pythondev
help
None of which matches the api doc sample
2019-05-23T04:29:15.114500
Philip
pythondev_help_Philip_2019-05-23T04:29:15.114500
1,558,585,755.1145
24,974
pythondev
help
Are there any good tutorials available for Pillow library for Python?I am having a hard time understanding and reading it from the documentation.
2019-05-23T04:45:15.116400
Scot
pythondev_help_Scot_2019-05-23T04:45:15.116400
1,558,586,715.1164
24,975
pythondev
help
Pseudocode ``` stringify Contact removeSingleQuotes removeDoubleQuotes urllib.parse.quote_plus ```
2019-05-23T04:49:44.116500
Carlee
pythondev_help_Carlee_2019-05-23T04:49:44.116500
1,558,586,984.1165
24,976
pythondev
help
<@Philip> This should work ``` urllib.parse.quote_plus(str(contact_info).replace("'", "")) ```
2019-05-23T04:53:37.117500
Carlee
pythondev_help_Carlee_2019-05-23T04:53:37.117500
1,558,587,217.1175
24,977
pythondev
help
I'll take a look into this. thanks <@Carlee> :taco:
2019-05-23T05:05:48.118000
Philip
pythondev_help_Philip_2019-05-23T05:05:48.118000
1,558,587,948.118
24,978
pythondev
help
dont miss the "real" code in channel :slightly_smiling_face:
2019-05-23T05:09:05.118200
Carlee
pythondev_help_Carlee_2019-05-23T05:09:05.118200
1,558,588,145.1182
24,979
pythondev
help
Sorry to be a pain, but is sorted() thread safe? how do i check this :cry:
2019-05-23T05:12:25.118700
Rubie
pythondev_help_Rubie_2019-05-23T05:12:25.118700
1,558,588,345.1187
24,980
pythondev
help
Or how can i check if operations are atomic or not
2019-05-23T05:12:58.119000
Rubie
pythondev_help_Rubie_2019-05-23T05:12:58.119000
1,558,588,378.119
24,981
pythondev
help
as far as I know `sorted` is thread safe because it makes a copy of the list and doesn't mutate the original list.
2019-05-23T05:16:17.119900
Carlee
pythondev_help_Carlee_2019-05-23T05:16:17.119900
1,558,588,577.1199
24,982
pythondev
help
I guess the key is to understand "shared mutable state".... - mutable state is thead safe if its not shared - shared state is thread safe if its not mutable.
2019-05-23T05:19:00.121600
Carlee
pythondev_help_Carlee_2019-05-23T05:19:00.121600
1,558,588,740.1216
24,983
pythondev
help
as the article explained `sorted` is thread safe by being a single bytecode and thus uninterruptable by GIL
2019-05-23T05:27:34.122500
Leida
pythondev_help_Leida_2019-05-23T05:27:34.122500
1,558,589,254.1225
24,984
pythondev
help
ah there is `sort` there not `sorted`
2019-05-23T05:28:23.122900
Leida
pythondev_help_Leida_2019-05-23T05:28:23.122900
1,558,589,303.1229
24,985
pythondev
help
but you can follow the same example and use `dis.dis()`
2019-05-23T05:28:52.123500
Leida
pythondev_help_Leida_2019-05-23T05:28:52.123500
1,558,589,332.1235
24,986
pythondev
help
oh, really Shoviks answer pretty much covers it anyway
2019-05-23T05:32:36.124000
Leida
pythondev_help_Leida_2019-05-23T05:32:36.124000
1,558,589,556.124
24,987
pythondev
help
```&gt;&gt;&gt; def foo(): ... return sorted(lst) ... &gt;&gt;&gt; dis.dis(foo) 2 0 LOAD_GLOBAL 0 (sorted) 2 LOAD_GLOBAL 1 (lst) 4 CALL_FUNCTION 1 6 RETURN_VALUE```
2019-05-23T05:37:54.124200
Leida
pythondev_help_Leida_2019-05-23T05:37:54.124200
1,558,589,874.1242
24,988
pythondev
help
Hello, I'm trying to run `python ~/Desktop/PhD/Coding/code.py` and all what I'm getting is `Segmentation fault`
2019-05-23T06:12:41.125100
Tanja
pythondev_help_Tanja_2019-05-23T06:12:41.125100
1,558,591,961.1251
24,989
pythondev
help
That's weird .. what do you get if you run `python --version` ?
2019-05-23T06:17:59.125600
Carlee
pythondev_help_Carlee_2019-05-23T06:17:59.125600
1,558,592,279.1256
24,990
pythondev
help
`Python 3.6.7`
2019-05-23T06:19:09.125800
Tanja
pythondev_help_Tanja_2019-05-23T06:19:09.125800
1,558,592,349.1258
24,991
pythondev
help
hmm, so its probably something in your `code.py`. What are you doing in it?
2019-05-23T06:20:07.126600
Carlee
pythondev_help_Carlee_2019-05-23T06:20:07.126600
1,558,592,407.1266
24,992
pythondev
help
Are you trying to process large data set?
2019-05-23T06:20:43.127100
Carlee
pythondev_help_Carlee_2019-05-23T06:20:43.127100
1,558,592,443.1271
24,993
pythondev
help
I guessed that I might be doing something wrong, but I remove all the code, and put only the `import` part, also it gives the same error
2019-05-23T06:21:41.128100
Tanja
pythondev_help_Tanja_2019-05-23T06:21:41.128100
1,558,592,501.1281
24,994
pythondev
help
```#!/usr/bin/python3 import matplotlib.pyplot as plt import numpy as np import pymesh import networkx as nx from sklearn.neighbors import kneighbors_graph from sklearn.preprocessing import normalize import pcl```
2019-05-23T06:21:58.128300
Tanja
pythondev_help_Tanja_2019-05-23T06:21:58.128300
1,558,592,518.1283
24,995
pythondev
help
yup, one of those imports is causing the problem.. can you try removing the imports one by one and check if it stops crashing?
2019-05-23T06:24:09.129100
Carlee
pythondev_help_Carlee_2019-05-23T06:24:09.129100
1,558,592,649.1291
24,996
pythondev
help
ok. I tried that, when I remove: `import matplotlib.pyplot as plt` it didn't get the previous error but gives me : ```Traceback (most recent call last): File "/home/roaa/Desktop/PhD/Coding/code.py", line 8, in &lt;module&gt; import pcl ModuleNotFoundError: No module named 'pcl' ``` although I'm sure that I installed it, even through several ways, and import pcl works normally when making import from terminal directly
2019-05-23T06:27:30.131000
Tanja
pythondev_help_Tanja_2019-05-23T06:27:30.131000
1,558,592,850.131
24,997
pythondev
help
this might be relevant <https://github.com/matplotlib/matplotlib/issues/9294>
2019-05-23T06:31:42.131300
Carlee
pythondev_help_Carlee_2019-05-23T06:31:42.131300
1,558,593,102.1313
24,998
pythondev
help
<@Tanja> Can you try this maybe? ``` import matplotlib as mpl mpl.use('TkAgg') # or whatever other backend that you want import matplotlib.pyplot as plt ```
2019-05-23T06:33:09.132000
Carlee
pythondev_help_Carlee_2019-05-23T06:33:09.132000
1,558,593,189.132
24,999
pythondev
help
or there are some other troubleshooting steps on the github issue.
2019-05-23T06:34:26.133200
Carlee
pythondev_help_Carlee_2019-05-23T06:34:26.133200
1,558,593,266.1332
25,000
pythondev
help
I want to mock `render` to test whether the correct template is being called from a view function. in the tests.py, if I write `with patch("app_name.views.render") as mock_render:`, it doesn't seem to mock `render`. any suggestions?
2019-05-23T06:51:39.133400
Larissa
pythondev_help_Larissa_2019-05-23T06:51:39.133400
1,558,594,299.1334
25,001
pythondev
help
Team, I'm trying to create an API for osquery to execute sql queries dynamically using flask but ending up with an error "Name or Module not found" however when I pass a static value able to see the result and this is in linux environment...Kindly advise me on this..
2019-05-23T11:43:35.135000
Hana
pythondev_help_Hana_2019-05-23T11:43:35.135000
1,558,611,815.135
25,002
pythondev
help
which name or module isn't found
2019-05-23T11:45:06.135500
Holly
pythondev_help_Holly_2019-05-23T11:45:06.135500
1,558,611,906.1355
25,003
pythondev
help
None
2019-05-23T11:48:18.135600
Hana
pythondev_help_Hana_2019-05-23T11:48:18.135600
1,558,612,098.1356
25,004
pythondev
help
its your curl command not your code
2019-05-23T11:48:55.136000
Holly
pythondev_help_Holly_2019-05-23T11:48:55.136000
1,558,612,135.136
25,005
pythondev
help
you can't put spaces in like that it has to be in http lingo
2019-05-23T11:49:10.136300
Holly
pythondev_help_Holly_2019-05-23T11:49:10.136300
1,558,612,150.1363
25,006
pythondev
help
`query=select%20version%20from%20os_version
2019-05-23T11:49:28.136900
Holly
pythondev_help_Holly_2019-05-23T11:49:28.136900
1,558,612,168.1369
25,007
pythondev
help
`query=select%20version%20from%20os_version`
2019-05-23T11:49:34.137200
Holly
pythondev_help_Holly_2019-05-23T11:49:34.137200
1,558,612,174.1372
25,008
pythondev
help
`%20` in http means space
2019-05-23T11:49:45.137600
Holly
pythondev_help_Holly_2019-05-23T11:49:45.137600
1,558,612,185.1376
25,009
pythondev
help
oh, let me try that
2019-05-23T11:49:48.137900
Hana
pythondev_help_Hana_2019-05-23T11:49:48.137900
1,558,612,188.1379
25,010
pythondev
help
when you put spaces in your curl command like that it tries to resolve each one as a host
2019-05-23T11:49:57.138100
Holly
pythondev_help_Holly_2019-05-23T11:49:57.138100
1,558,612,197.1381
25,011
pythondev
help
just an FYI though, its not very advisable to have an exposed API that takes direct SQL queries, it can be pretty unsafe
2019-05-23T11:50:19.138800
Holly
pythondev_help_Holly_2019-05-23T11:50:19.138800
1,558,612,219.1388
25,012
pythondev
help
great thank you <@Holly>
2019-05-23T11:50:39.139000
Hana
pythondev_help_Hana_2019-05-23T11:50:39.139000
1,558,612,239.139
25,013
pythondev
help
np
2019-05-23T11:50:47.139200
Holly
pythondev_help_Holly_2019-05-23T11:50:47.139200
1,558,612,247.1392
25,014
pythondev
help
So how do we handle that <@Holly> ,
2019-05-23T11:51:36.139900
Hana
pythondev_help_Hana_2019-05-23T11:51:36.139900
1,558,612,296.1399
25,015
pythondev
help
I'm pretty new to this would be helpful if you could suggest
2019-05-23T11:51:51.140300
Hana
pythondev_help_Hana_2019-05-23T11:51:51.140300
1,558,612,311.1403
25,016
pythondev
help
generally if you're making an api, you'd want another library that handles the database queries
2019-05-23T12:02:20.140600
Holly
pythondev_help_Holly_2019-05-23T12:02:20.140600
1,558,612,940.1406
25,017
pythondev
help
like sqlalchemy
2019-05-23T12:02:25.140800
Holly
pythondev_help_Holly_2019-05-23T12:02:25.140800
1,558,612,945.1408
25,018
pythondev
help
and when someone sends an api request for some data, you pass that data to a function and that function performs the lookup in the database and returns it
2019-05-23T12:02:50.141400
Holly
pythondev_help_Holly_2019-05-23T12:02:50.141400
1,558,612,970.1414
25,019
pythondev
help
that allows you to control what type of data gets sent to your database, so someone can't just put in a query into the api call and then get all the information in your database
2019-05-23T12:03:18.142100
Holly
pythondev_help_Holly_2019-05-23T12:03:18.142100
1,558,612,998.1421
25,020