The PythonAnywhere newsletter, September 2017


Gosh, and we were doing so well. After managing a record seven of our “monthly” newsletters back in 2016, it’s mid-September and we haven’t sent a single one so far this year :-( Well, better late than never! Let’s see what’s been going on.

The PythonAnywhere API

Our API is now in public beta! Just go to the “API token” tab on the “Account” page to generate a token and get started.

You can do lots with it already:

  • Create, reload and reconfigure websites: our very own Harry has written a neat script that allows you to create a completely new Django website, with a virtualenv, using it.
  • Get links to share files from your PythonAnywhere file storage with other people
  • List your consoles, and close them.

We’re planning to add API support for creating, modifying and deleting scheduled tasks very soon.

Full documentation is here. We’d love your feedback and any suggestions about what we need to add to it. Just drop us a line at support@pythonanywhere.com.

Other nifty new stuff, part 1

You might have noticed something new in that description of the API calls. You might have asked yourself “what’s all this about sharing files? I don’t remember anything about that.”

You’re quite right – it’s a new thing, you can now generate a sharing link for any file from inside the PythonAnywhere editor. Send the link to someone else, and they’ll get a page allowing them to copy it into their own account. Let us know if you find it useful :-)

Other nifty stuff, part 2

Of course, no Python developer worth their salt would ever consider using an old version of the language. In particular, we definitely don’t have any bits of Python 2.7 lurking in our codebase. Definitely not. Nope.

Anyway, adding Python 3.6 support was super-high priority for us – and it went live earlier on this year.

One important thing – it’s only supported in our “dangermouse” system image. If your account was created in the last year, you’re already using dangermouse, so you’ll already have it. But if your account is older, and you haven’t switched over yet, maybe it’s time? Just drop us a line.

The inside scoop from the blog and the forums

Some new help pages

A couple of new pages from our ever-expanding collection:

New modules

Although you can install Python packages on PythonAnywhere yourself, we like to make sure that we have plenty of batteries included.

We haven’t installed any new system modules for Python 2.7, 3.3, 3.4 or 3.5 recently – but we have installed everything we thought might be useful as part of our Python 3.6 install :-)

New whitelisted sites

Paying PythonAnywhere customers get unrestricted Internet access, but if you’re a free PythonAnywhere user, you may have hit problems when writing code that tries to access sites elsewhere on the Internet. We have to restrict you to sites on a whitelist to stop hackers from creating dummy accounts to hide their identities when breaking into other people’s websites.

But we really do encourage you to suggest new sites that should be on the whitelist. Our rule is, if it’s got an official public API, which means that the site’s owners are encouraging automated access to their server, then we’ll whitelist it. Just drop us a line with a link to the API docs.

We’ve added too many sites to list since our last newsletter to list them all – but please keep them coming!

That’s all for now

That’s all we’ve got this time around. We have some big new features in the pipeline, so keep tuned! Maybe we’ll even get our next newsletter out in October :-)

comments powered by Disqus