pfctdayelise + python   196

GitHub - torfsen/python-systemd-tutorial: A tutorial for writing a systemd service in Python
Writing a systemd Service in Python
Many Linux distributions use systemd to manage the system's services (or daemons), for example to automatically start certain services in the correct order when the system boots.

Writing a systemd service in Python turns out to be easy, but the complexity of systemd can be daunting at first. This tutorial is intended to get you started.

When you feel lost or need the gritty details, head over to the systemd documentation, which is pretty extensive. However, the docs are distributed over several pages, and finding what you're looking for isn't always easy. A good place to look up a particular systemd detail is systemd.directives, which lists all the configuration options, command line parameters, etc., and links to their documentation.

Aside from this README.md file, this repository contains a basic implementation of a Python service consisting of a Python script (python_demo_service.py) and a systemd unit file (python_demo_service.service).

The systemd version we're going to work with is 229, so if you're using a different version (see systemctl --version) then check the systemd documentation for things that may differ.
linux  service  python 
4 days ago by pfctdayelise
Gaia - Build powerful pipelines in any programming language.
Automation platform of the future

Automation processes and requirements have developed rapidly in recent years. Cloud, SaaS, PaaS, AaaS, Kubernetes, Docker, and many more technologies were invented to simplify the complexity and management of huge IT applications. Communication with external APIs and services for CI/CD is simply essential nowadays and hard to do right with simple configuration specs.

Gaia is the next evolution of automation platforms whose goal is to provide full flexibility and performance for today's CI/CD, but basically any automation workflow imaginable.
Enables DevOps

DevOps becomes more and more important and many developers are scared of this word because it usually implies writing endless lines of YAML/JSON configuration files to automate complex automation tasks.

Gaia requires no YAML/JSON or any other configuration spec to write automation workflows. An automation workflow (we named it pipeline) can be written in any programming language and adding it to Gaia usually takes a few seconds. Once a pipeline has been added, Gaia automatically detects changes and rebuilds your pipeline automatically.
Efficient and super fast
Gaia has been from the ground up developed with the goal to be ultra lightweight, efficient, super fast and developer-first. It's core is written in Go and the pipeline communication is based on googles battle-hardened gRPC which uses HTTP/2. The Unix philosophy (simple, modular and composable) is and will always be the base principle for Gaia.
Build by and for operators

Gaia is one self-contained binary which can be started without any configuration. Just download, unarchive and start it. We also provide various docker images ready to pull. You prefer to have all your tools running in Kubernetes? Don't worry, we also provide a helm chart.

Get started now and setup Gaia within seconds, develop your first pipeline in 5-10 minutes.
devops  python  opensource 
4 weeks ago by pfctdayelise
shiv 🔪 — shiv documentation
Shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441 but with all their dependencies included!

Shiv’s primary goal is making distributing Python applications fast & easy.
python 
5 weeks ago by pfctdayelise
Taurus
Kind of open source?? not sure where the bug tracker is. can run pytest tests.
performance  testing  python  opensource 
6 weeks ago by pfctdayelise
icecream Sweet and creamy print debugging.
IceCream is a little library for sweet and creamy debugging.

Do you ever use print() or log() to debug your code? Of course you do. IceCream, or ic for short, makes print debugging a little sweeter.

IceCream is well tested, permissively licensed, and supports Python 2, Python 3, PyPy2, and PyPy3.
Ice Cream with Toppings (Arguments)

Have you ever printed variables or expressions to debug your program? If you've ever typed something like

print(foo('123'))

or the more thorough

print("foo('123')", foo('123'))

then ic() is here to help. With arguments, ic() inspects itself and prints both its own arguments and the values of those arguments.

from icecream import ic

def foo(i):
return i + 333

ic(foo(123))

Prints

ic| foo(123): 456

Similarly,

d = {'key': {1: 'one'}}
ic(d['key'][1])

class klass():
attr = 'yep'
ic(klass.attr)

Prints

ic| d['key'][1]: 'one'
ic| klass.attr: 'yep'

Just give ic() a variable or expression and you're done. Easy.
python  debugging 
june 2018 by pfctdayelise
pytudes
"An étude (a French word meaning study) is an instrumental musical composition, usually short, of considerable difficulty, and designed to provide practice material for perfecting a particular musical skill." — Wikipedia

This project contains pytudes—Python programs for perfecting programming skills.

Some are in Jupyter (IPython) notebooks, some in .py files.
programming  python  practice 
february 2018 by pfctdayelise
walrus — walrus 0.5.1 documentation
Python utilities for working with Redis:

container classes
autocomplete
cache
full-text search
graph store
rate limiting
active-record models (secondary indexes, full-text search)
locks
more? more!

My hope is that walrus saves you time developing your application by providing useful Redis-specific components. If you have an idea for a new feature, please don’t hesitate to tell me about it.
python  redis 
february 2018 by pfctdayelise
Deploying Python Web Applications with nginx and uWSGI Emperor | Chris Warrick
You’ve just written a great Python web application. Now, you want to share it with the world. In order to do that, you need a server, and some software to do that for you.
The following is a comprehensive guide on how to accomplish that, on multiple Linux-based operating systems, using nginx and uWSGI Emperor. It doesn’t force you to use any specific web framework — Flask, Django, Pyramid, Bottle will all work. Written for Ubuntu, Debian, Fedora, CentOS and Arch Linux (should be helpful for other systems, too). Now with an Ansible Playbook.
python  ansible  ubuntu  debian  nginx  uwsgi  webdev 
may 2017 by pfctdayelise
Sentry Server – Sentry Documentation
Stop hoping your users will report errors
Sentry’s real-time error tracking gives you insight into production deployments and information to reproduce and fix crashes.

You can pay for sentry.io or you can also set up the server yourself for "on premises" use.
python  monitoring 
may 2017 by pfctdayelise
The Book
"Test-Driven Web Development with Python" aims to teach TDD for web programming. It uses a concrete example -- the development of a website, from scratch -- to explain the TDD metholology and how it applies to building web applications. It covers the Selenium browser-automation tool, unit testing, mocking, and interacting with Web technologies from the basics of static content, database integration, throught the inescapable JavaScript, and onto more advanced (and trendy) topics like NoSQL, websockets and Async programming.
python  django  testing 
march 2017 by pfctdayelise
mnot/redbot @ GitHub
"RED checks HTTP resources to see how they use HTTP, makes suggestions, and finds common protocol mistakes."

Public instance, can also be installed locally.
python  http 
may 2016 by pfctdayelise
pgcli
Pgcli is a command line interface for Postgres with auto-completion and syntax highlighting.
postgres  python  opensource 
november 2015 by pfctdayelise
re:dash
Open Soure Data Collaboration Platform
Connect to any data source, visualize your data and share it with anyone!
opensource  python  datavis 
november 2015 by pfctdayelise
Oops! by Curtis Maloney
easy errors to make in python/django
python  django 
september 2015 by pfctdayelise
spaCy.io
Somewhat weird license choice - AGPL. currently english only.
python  NLP  nltk 
august 2015 by pfctdayelise
Matplotlib tutorial
esp the line style/color table etc reference at the end
matplotlib  python  tutorial  useful 
september 2013 by pfctdayelise
None
"Simple, Pythonic, text processing--Sentiment analysis, POS tagging, noun phrase extraction, and more." - curious about what the relationship between this library and NLTK is.
python  NLP  nltk  compling 
august 2013 by pfctdayelise
None
open source alternative to disqus, comment server
python  opensource  blog  comments 
july 2013 by pfctdayelise
« earlier      
per page:    204080120160

related tags

abc  alm  android  ansible  apache  api  async  AWS  blog  books  briannalaugher  bugtracker  bzr  caching  cc-by-sa  celery  cffsw  charts  CI  client  code  comments  compare  compling  conference  conferences  contracttesting  cool  data  database  datamining  datavis  debian  debugging  decorators  deployment  developers  devops  django  docker  documentation  dreamhost  eclipse  education  emacs  email  emoji  evaluation  events  examples  fabric  flask  forms  funny  games  garmin  geekculture  geekfeminism  generators  geo  geospatial  github  glitch  graphite  graphs  gui  hg  howto  html  http  hypothesis  i18n  identica  interesting  internode  interview  ironpython  jaiku  javascript  jupyter  language  languages  LCA  LCA2010  leaflet  linguistics  linter  linux  literateprogramming  machinelearning  mailman  maps  matplotlib  mediawiki  melbourne  metrics  microservices  Microsoft  mod_wsgi  monitoring  mono  nginx  NLP  nltk  notebook  ocr  opendap  opensource  oracle  packaging  performance  perl  php  pip  podcast  postgres  practice  pretty  profiling  programming  prolog  PSI  pyblosxom  pyconau  pydap  pygame  pylint  pyqt  pytest  python  python3  quality  redis  regexp  rest  restructuredtext  rss  ruby  rust  screencast  screenscraping  search  security  service  shiny  site  software  softwaredev  spain  spanish  sqlite  static  statsd  swagger  t10n  teaching  testing  text  tutorial  twitter  ubuntu  unicode  useful  uwsgi  versioncontrol  video  vsts  weatherforecasts  web  web-based  web.py  web2.0  web2py  webaccess  webdesign  webdev  websockets  wiki  wikipedia  women  xml  Y  zookeepr 

Copy this bookmark:



description:


tags: