Is it possible to send emails in python? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
My goal is to send emails entirely from python. I want to do it all from scratch, maybe go as far as building an email server in python if someone hasn't done it already. I want to do this because I'm basically tired of using Postfix or the common email providers with the standard SMTP/POP/IMAP libraries. Also, another reason I want to try to do this is because I want to try and understand better how the email protocols work.
I'm not entirely sure where to start. Maybe I should take a look at the Postfix source code and try and make a python SMTP server. I know it would be much easier to just stick with the standard way of doing it instead of building from scratch, but like I said, this is more of an educational study for me to learn how it all works, I will very likely never use it in production.
So, give me ideas guys. Where should I start? If you know of an article that may enlighten me, please post it. --Thanks

It's been done before, but you can always make one if you want.
smtpd was a Python Module of the Week.
This is some good reading that was provided in a similar SO question here.
I've used this before when I was working on a project.

Related

Best way to build a desktop app while keeping my python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
So, I've built this program using python what is currently running in the terminal.
My goal is to eventually design the application in a modern way like (discord, slack, or any other 2021 downloaded desktop-app),but I'm not really sure what to use.
The thing is, I know React/Electron would be the best way to build/design a desktop application like discord, teams etc. However, I'm looking to keep my python as some sort of backend, while using lets say Electron as front
How can I keep my python functions, while designing a modern GUI/front end?
Thanks for advice
wiki.python.org has GuiProgamming entry, where GUI frameworks for python are enumerated. You need to select framework which does support platform you are targeting. If you are interested in fine control of look I would suggest Kivy cross-platform framework.
You could use the Tkinter python module although it is not to much like react.

A cryptographic tool for specific fields in data [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I was thinking of building a piece of software that would be able to encrypt specific fields in a data file. So I started to consider writing some code in Python using cryptographic libraries. However I wonder: is it really safe? Should I rather use existing cryptographic tools?
If so, do you know a good cryptographic tool I could rely on? The only tools I find only encrypt entire files or disks. Thank you!
This greatly depends (obviously), on how you write it.
There are libraries like cryptography which already provide this solution though and are considered very safe.
https://github.com/fugue/credstash, for instance, which is widely used, uses cryptography.
https://github.com/lyft/confidant uses it also.
I implemented a locally usable secret store using cryptography (which you could use to encrypt any type of data) - https://github.com/nir0s/ghost which you could use as a reference implementation or simply use it (hope I'm not breaking any rules here)

Looking for example or documentation for wikidump python lib [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I stumbled upon the wikidump python library, which I think suits me just fine.
I could get by by looking at the source code, but I'm new at python and I don't want to write BS code as the project I need it for is kind of important to me.
I got the 'wiki-SPECIFICDATE-pages-articles.xml.bz2' file and I would need to use that as my source for single article fetching. Can anyone give me some pointers as to properly achieve this or, even better, point at some documentation? I couldn't find any!
(p.s. if you got any better and properly doc'd lib, please tell me)
Not sure if I understand the question, but if you have the Wikipedia dump and you need to parse the wikicode, I would suggest mwparserfromhell lib.
Another powerful framework is Pywikibot, that is the historic framework for bot users on Wikipedia (thus, it has many scripts dedicated to writing pages, instead of reading and parsing articles). It has a lot of documentation (though, sometimes obsolete) and it uses MediaWiki API.
You can use them both, of course: PWB for fetching articles and mwparserfromhell for parsing.

Runtime Statistics in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm looking for a library for gathering "runtime statistics" in python, by which I mean an interface for outputting structured log files. A good example of what I would like is Twitter's ostrich project in Scala, wherein one simply executes a statement notifying the logger of an event. Ideally, this would then be automatically aggregated into a suitable visualization for application monitoring.
Does anyone know if such a library exists? Alternatively, does anyone know a more generic way of combining traditional message logging with some simply graphing for runtime analytics?
Thanks!
Graphite is one such system, written in Python.
I'm not familiar with ostrich, but a quick look at the readme suggests that the python project mmstats might be close to what you're looking for.

Is there something better than django-piston? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
With 145 forks, 125 open issues, and the last release almost 2years ago, django-piston appears to be approaching abandonware and since the project I'm working on is likely to be a big one, I'd like to standardise on something that's going to be around for a while. Is there something resembling a consensus in the Python/Django community regarding a preference for REST API services? Even if it's one of those 145 forks? Ideally, I'd like to find something that plays nice with #jacobian's REST Worst Practises
check http://djangopackages.com/grids/g/api/ (django-tastypie looks very promising)
I also don't like Piston very much. Don't misunderstand me. It is (or was) a good app, though it has its issues. The main problem I had working with it that it hides Debugging information coming from django.
If you are absolutely unsure about what to use roll your own. With django 1.3 and class based views you got already a good way to add an API like this. If you need OAuth or other authentication methods you can simply check existing ways in piston or other apps and use them.
Two other REST packages that may be of interest :
http://django-rest-framework.org/
http://benoitc.github.com/dj-webmachine/index.html
It is worth mentioning about
django-tastypie
This is getting faster acceptance than the others.
Django Piston project seems to be abandonned.
Django rest framework has taken a large advantage with its second version.
Note that this is valid for now (2014), time may decide different.

Categories