Yet another JavaScript-like language with a Pythonic syntax

Yet another JavaScript-like language with a Pythonic syntax. Saga is a new programing language designed to replace JavaScript, getting rid of its weird syntax or runtime behavior, replacing it with a host of new syntax and powerful features. Designed to be easy to write and still easy to comprehend, Saga allows you to write expressive, type-safe and performant code devoid of repetitive boilerplate. With Saga, you can leverage the full power of JavaScript in a robust and strongly-typed language without […]

Read more

A python package manager designed to manage C / C++ packages

cfpm is a package manager designed to manage C / C++ packages. Installation Requirements cfpm requires at least Python 3.7 to run. Use pip Make sure the pip comes from Python 3. Use pip -V to verify it. $ pip install cfpm You can also upgrade it using pip using pip install cfpm –upgrade. Build from source Building from source is easy too. Clone the repo and pip install will do thework. $ git clone https://github.com/project-cfpm/cfpm.git $ cd cfpm $ […]

Read more

A Python module to use the Tesla Motors Owner API

A Python implementation based on unofficial documentation of the client side interface to the Tesla Motors Owner API, which provides functionality to monitor and control Tesla products remotely. Overview This module depends on Python requests, requests_oauthlib and websocket-client. The Tesla class extends requests.Session and therefore inherits methods like get() and post() that can be used to perform API calls. All calls to the Owner API are intercepted by the request() method to add the JSON Web Token (JWT) bearer, which […]

Read more

Provides syntax for Python-Markdown which allows for the inclusion of Markdown documents

This is an extension to Python-Markdown which provides an “include” function, similar to that found in LaTeX (and also the C pre-processor and Fortran). I originally wrote it for my FORD Fortran auto-documentation generator. Installation This module can now be installed using pip. pip install markdown-include Usage This module can be used in a program in the following way: import markdown html = markdown.markdown(source, extensions=[‘markdown_include.include’]) The syntax for use within your Markdown files is {!filename!}. This statement will be replaced […]

Read more

The official Python client library for Google’s discovery based APIs

This is the Python client library for Google’s discovery based APIs. To get started, please see the docs folder. These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features. Documentation See the docs folder for more detailed instructions and additional documentation. Other Google API libraries For Google Cloud Platform APIs such as Datastore, […]

Read more

Easy saving and switching between multiple KDE configurations

Konfsave is a config manager. That is, it allows you to save, back up, and easily switch between different (per-user) system configurations. Each configuration is stored as a profile; the script allows you to save the current configuration as a named profile, and then load them by name. It’s also possible to take these profiles somewhere else by exporting or importing them, or just copying their folder. By default, Konfsave manages your KDE configuration – specifically, its appearance and workspace […]

Read more

Django project starter on steroids: quickly create a Django app AND generate source code for data models + REST/GraphQL APIs

We’re a Django project starter on steroids! One-line command to create a Django app with all the dependencies auto-installed AND Easy config (alpha release) to generate Django code for: setting up package managers (pipenv, poetry, virtualenv) setting web servers (dev, gunicorn, uwsgi) connecting to different databases (MySQL, PostgreSQL, SQLite3) data models CRUD API (REST, GraphQL) unit tests and test coverage reporting autogenerated test factories (FactoryBoy) linting and code formatting (autopep8, isort) API documentation (Swagger, ReDoc) Quick start Run the following […]

Read more

A Python library for rendering reMarkable documents to PDF files

rmrl is a Python library for rendering reMarkable documents to PDF files. It takes the original PDF document and the files describing your annotations, combining them to produce a document close to what reMarkable itself would output. Demo The same notebook was rendered to a PDF via the reMarkable app and rmrl. The resultant PDF files were converted to PNGs with ImageMagick at 300 dpi. reMarkable output rmrl output The biggest differences are the lack of texture in the pencils […]

Read more

Parameterized testing with any Python test framework

Parameterized testing in Python sucks. parameterized fixes that. For everything. Parameterized testing for nose, parameterized testing for py.test, parameterized testing for unittest. # test_math.py from nose.tools import assert_equal from parameterized import parameterized, parameterized_class import unittest import math @parameterized([ (2, 2, 4), (2, 3, 8), (1, 9, 1), (0, 9, 0), ]) def test_pow(base, exponent, expected): assert_equal(math.pow(base,    

Read more
1 29 30 31 32 33 48