[AF} Are mostly integration tests "acceptable"?
Most tests that I've seen rely on integration tests with very few, if any unit tests. I haven't seen any mocks. Is this normal practice for Flask (and/or Django) projects? I'm trying to learn the best practices but I can't figure that out. Right now, I'm writing integration tests for my routes (using sqllite db) with few unit tests.
/r/flask
https://redd.it/89f2nz
Most tests that I've seen rely on integration tests with very few, if any unit tests. I haven't seen any mocks. Is this normal practice for Flask (and/or Django) projects? I'm trying to learn the best practices but I can't figure that out. Right now, I'm writing integration tests for my routes (using sqllite db) with few unit tests.
/r/flask
https://redd.it/89f2nz
reddit
[AF} Are mostly integration tests "acceptable"? • r/flask
Most tests that I've seen rely on integration tests with very few, if any unit tests. I haven't seen any mocks. Is this normal practice for Flask...
Keyword Arguments in Python: How to Use Them
http://treyhunner.com/2018/04/keyword-arguments-in-python/
/r/Python
https://redd.it/89qwgb
http://treyhunner.com/2018/04/keyword-arguments-in-python/
/r/Python
https://redd.it/89qwgb
Treyhunner
Keyword (Named) Arguments in Python: How to Use Them
Keyword arguments are one of those Python features that often seems a little odd for folks moving to Python from many other programming languages. It …
Is there any recent app to keep track of transactions / account balances?
Hello there! Diggin' in Google i just found two:
The oscar's accounts app:
https://github.com/django-oscar/django-oscar-accounts
(This requires Oscar, which i don't need)
And this fork of the same project:
https://github.com/carver/django-account-balances
(Which is not updated, and doesn't work with recent Django versions)
I think i'll have to download the last one and try to upgrade it myself. I didn't want to make my own system off the ground mainly because of being afraid of transaction bugs, i would rather leave it to people that know better than me. Thank you very much!
/r/django
https://redd.it/89tbxn
Hello there! Diggin' in Google i just found two:
The oscar's accounts app:
https://github.com/django-oscar/django-oscar-accounts
(This requires Oscar, which i don't need)
And this fork of the same project:
https://github.com/carver/django-account-balances
(Which is not updated, and doesn't work with recent Django versions)
I think i'll have to download the last one and try to upgrade it myself. I didn't want to make my own system off the ground mainly because of being afraid of transaction bugs, i would rather leave it to people that know better than me. Thank you very much!
/r/django
https://redd.it/89tbxn
GitHub
GitHub - django-oscar/django-oscar-accounts: Managed accounts for Django (with or without django-oscar)
Managed accounts for Django (with or without django-oscar) - django-oscar/django-oscar-accounts
LDAP auth in view (not system)
Hey all,
I'm trying to manually authenticate LDAP users through a view. All search results seem to focus on using LDAP for Django users, which I don't want.
In essence, I want to receive a user/pass combination as POST parameters, and connect to the LDAP server in the view, send the data, and process the result. Is there a library for this?
/r/django
https://redd.it/89scxu
Hey all,
I'm trying to manually authenticate LDAP users through a view. All search results seem to focus on using LDAP for Django users, which I don't want.
In essence, I want to receive a user/pass combination as POST parameters, and connect to the LDAP server in the view, send the data, and process the result. Is there a library for this?
/r/django
https://redd.it/89scxu
reddit
LDAP auth in view (not system) • r/django
Hey all, I'm trying to manually authenticate LDAP users through a view. All search results seem to focus on using LDAP for Django users, which I...
What are the 'secrets' that should be kept secret?
Newbie here, I have read on guides and articles that when using version control and during deployment, there are stuff that should be kept secret.
1. Is this only necessary when the project involves multiple devs? Is it still required if it is a personal project and I keep the repo private?
2. The only secret variables that I know of are SECRET_KEY and DATABASES variables. Are there anything else that should be kept secret?
/r/django
https://redd.it/89rq18
Newbie here, I have read on guides and articles that when using version control and during deployment, there are stuff that should be kept secret.
1. Is this only necessary when the project involves multiple devs? Is it still required if it is a personal project and I keep the repo private?
2. The only secret variables that I know of are SECRET_KEY and DATABASES variables. Are there anything else that should be kept secret?
/r/django
https://redd.it/89rq18
reddit
What are the 'secrets' that should be kept secret? • r/django
Newbie here, I have read on guides and articles that when using version control and during deployment, there are stuff that should be kept secret....
Poetry (Dependency management for Python) 0.7.0 is out: Python 3.4 and 3.5 support, standalone installer and more
https://poetry.eustace.io/blog/poetry-0-7-0-is-out.html
/r/Python
https://redd.it/89sflx
https://poetry.eustace.io/blog/poetry-0-7-0-is-out.html
/r/Python
https://redd.it/89sflx
poetry.eustace.io
Poetry 0.7.0 is out | Blog | Poetry - Python dependency management and packaging made easy.
This version brings some improvements and a bunch of bugfixes.
[P] The Annotated Transformer: Line-by-Line PyTorch implementation of "Attention is All You Need"
http://nlp.seas.harvard.edu/2018/04/03/attention.html
/r/MachineLearning
https://redd.it/89uy75
http://nlp.seas.harvard.edu/2018/04/03/attention.html
/r/MachineLearning
https://redd.it/89uy75
reddit
[P] The Annotated Transformer: Line-by-Line... • r/MachineLearning
35 points and 1 comments so far on reddit
Creating animated map visualizations with Python
https://medium.com/udacity/creating-map-animations-with-python-97e24040f17b
/r/Python
https://redd.it/89vmrs
https://medium.com/udacity/creating-map-animations-with-python-97e24040f17b
/r/Python
https://redd.it/89vmrs
Medium
Creating Map Animations with Python
For last week’s Intersect 2018 conference, I created a map visualization that was shown during the keynote speech from Udacity’s CEO …
Python Libraries for ETL Data Validation?
I am looking for a python library to validate the output of etl jobs that use sql statement and an expected value. Then if the tests fail there are callbacks I can use, or possibly a dashboard that is updated with the failed tests. Anyone aware of anything that fits the bill?
/r/Python
https://redd.it/89vr6a
I am looking for a python library to validate the output of etl jobs that use sql statement and an expected value. Then if the tests fail there are callbacks I can use, or possibly a dashboard that is updated with the failed tests. Anyone aware of anything that fits the bill?
/r/Python
https://redd.it/89vr6a
reddit
Python Libraries for ETL Data Validation? • r/Python
I am looking for a python library to validate the output of etl jobs that use sql statement and an expected value. Then if the tests fail there...
JQery pretty much the only way to call Function without reloading page?
Still pretty new to Django but I've gotten to a point with my website where I want the user to press a button which calls a python function, return the values and then replace various bits of html needed WITHOUT reloading the entire page.
So far my searching has mostly come up with these kind of [solutions](https://stackoverflow.com/questions/17599035/django-how-can-i-call-a-view-function-from-template)... I assumed Django had a "Django Way" for doing this kind of thing.. maybe using jinja or something, but I can't seem to find it.. or atleast can't find what I assume I am looking for.
What is the proper way of doing what I am talking about?
/r/djangolearning
https://redd.it/89svb6
Still pretty new to Django but I've gotten to a point with my website where I want the user to press a button which calls a python function, return the values and then replace various bits of html needed WITHOUT reloading the entire page.
So far my searching has mostly come up with these kind of [solutions](https://stackoverflow.com/questions/17599035/django-how-can-i-call-a-view-function-from-template)... I assumed Django had a "Django Way" for doing this kind of thing.. maybe using jinja or something, but I can't seem to find it.. or atleast can't find what I assume I am looking for.
What is the proper way of doing what I am talking about?
/r/djangolearning
https://redd.it/89svb6
Stack Overflow
Django: How can I call a view function from template?
I have a question on how to call a view function from a template HTML button? Like an onclick function?
Here is the template:
<input id="submit" type="button" onclick="xxx" method="post" value="
Here is the template:
<input id="submit" type="button" onclick="xxx" method="post" value="
Python & Big Data: Airflow & Jupyter Notebook with Hadoop 3, Spark & Presto
http://tech.marksblogg.com/python-big-data-airflow-jupyter-notebook-hadoop-3-hive-presto.html
/r/pystats
https://redd.it/8a059r
http://tech.marksblogg.com/python-big-data-airflow-jupyter-notebook-hadoop-3-hive-presto.html
/r/pystats
https://redd.it/8a059r
Marksblogg
Python & Big Data: Airflow & Jupyter Notebook with Hadoop 3, Spark & Presto
Benchmarks & Tips for Big Data, Hadoop, AWS, Google Cloud, PostgreSQL, Spark, Python & More...
Questions from a beginner about hosting a Django website
I'm new to webdev in general and pretty much finished my first django project but I'm not sure about a few things when it comes to hosting, would really appreciate it if someone could help me out here:
1.Right now I'm using a DigitalOcean one click app to host my site and it works fine, but is this still a good option when the amount
of traffic for example is increasing?
2.So I've seen that you can host the database (MySQL) on the server it's self or using a 3rd party service which I'm doing right now
just cause it's easier, is there a reason I would have to run my DB on my server at some point (again e.g more trafic)?
/r/django
https://redd.it/89yo3p
I'm new to webdev in general and pretty much finished my first django project but I'm not sure about a few things when it comes to hosting, would really appreciate it if someone could help me out here:
1.Right now I'm using a DigitalOcean one click app to host my site and it works fine, but is this still a good option when the amount
of traffic for example is increasing?
2.So I've seen that you can host the database (MySQL) on the server it's self or using a 3rd party service which I'm doing right now
just cause it's easier, is there a reason I would have to run my DB on my server at some point (again e.g more trafic)?
/r/django
https://redd.it/89yo3p
reddit
Questions from a beginner about hosting a Django website • r/django
I'm new to webdev in general and pretty much finished my first django project but I'm not sure about a few things when it comes to hosting, would...
Need help with Javascript and Django
I currently have a very small Javascript application that has a input field and then searches the OMDB API to get results for the entered keyword. I was to dramatically expand the application and for that I need a backend. I’m going to use Django because I have experience with it, but there is one thing I’m not sure about. Should I keep using Javascript to request information from the API, or should i use Django to do it instead? I don’t know which way is the “more correct” way of doing it. Thanks in advance!
/r/djangolearning
https://redd.it/8a0qse
I currently have a very small Javascript application that has a input field and then searches the OMDB API to get results for the entered keyword. I was to dramatically expand the application and for that I need a backend. I’m going to use Django because I have experience with it, but there is one thing I’m not sure about. Should I keep using Javascript to request information from the API, or should i use Django to do it instead? I don’t know which way is the “more correct” way of doing it. Thanks in advance!
/r/djangolearning
https://redd.it/8a0qse
reddit
Need help with Javascript and Django • r/djangolearning
I currently have a very small Javascript application that has a input field and then searches the OMDB API to get results for the entered keyword....
The Scientific Paper Is Obsolete. Here's What's Next. - The Atlantic (answer: Jupyter)
https://www.theatlantic.com/science/archive/2018/04/the-scientific-paper-is-obsolete/556676/
/r/IPython
https://redd.it/8a14e6
https://www.theatlantic.com/science/archive/2018/04/the-scientific-paper-is-obsolete/556676/
/r/IPython
https://redd.it/8a14e6
The Atlantic
The Scientific Paper Is Obsolete
Here's what's next.
MatchIt in python
Do we have something similar to R 'MatchIt' package in python. In order to match study and control items using different methods ( propensity score might be one of them)? I came across CasualInference (http://causalinferenceinpython.org/causalinference.core.html), but it seems somewhat limited to only propensity score.
/r/pystats
https://redd.it/8a20hz
Do we have something similar to R 'MatchIt' package in python. In order to match study and control items using different methods ( propensity score might be one of them)? I came across CasualInference (http://causalinferenceinpython.org/causalinference.core.html), but it seems somewhat limited to only propensity score.
/r/pystats
https://redd.it/8a20hz
reddit
MatchIt in python • r/pystats
Do we have something similar to R 'MatchIt' package in python. In order to match study and control items using different methods ( propensity...
Django Experiment: Packaging django projects as debian packages
https://github.com/ebsuku/python3-qoqa
/r/django
https://redd.it/8a23gc
https://github.com/ebsuku/python3-qoqa
/r/django
https://redd.it/8a23gc
GitHub
ebsuku/python3-qoqa
python application to package django projects as debian(.deb) packages - ebsuku/python3-qoqa
awesome-jupyter: A curated list of awesome Jupyter projects, libraries and resources on GitHub.
https://github.com/markusschanta/awesome-jupyter
/r/IPython
https://redd.it/8a00ik
https://github.com/markusschanta/awesome-jupyter
/r/IPython
https://redd.it/8a00ik
GitHub
GitHub - markusschanta/awesome-jupyter: A curated list of awesome Jupyter projects, libraries and resources
A curated list of awesome Jupyter projects, libraries and resources - markusschanta/awesome-jupyter