A Web scraping library and command-line tool for text discovery and extraction

Description Trafilatura is a Python package and command-line tool which seamlessly downloads, parses, and scrapes web page data: it can extract metadata, main body text and comments while preserving parts of the text formatting and page structure. The output can be converted to different formats. Distinguishing between a whole page and the page’s essential parts can help to alleviate many quality problems related to web text processing, by dealing with    

Read more

Python News: What’s New From August 2021?

Summer holidays have ended, and it’s back to school again. While it was a time of leisure and getting disconnected from the virtual world for many of us, the Python maintainers and contributors have been busy working during that same period. Just in August 2021, the Python community saw three new Python releases, bringing some important security fixes, optimizations, and brand-new features. Let’s dive into the biggest Python news from the past month! Python 3.10 Is Almost Ready On August […]

Read more

Django-admin fixture generator command

django-admin commands which generate fixture data for your given apps’s models using Mimesis data generator. requirementspip install django pip install mimesis pip install pyyaml pip install colorama installationpip intall mockangoINSTALLED_APPS = [ … ‘mockango’, ] usage app_labels(positional): labels of app you need fixture data for them –num(optional)(default=10): number of object generate for each model –foramt(optional)(default=yaml): format of fixture file –locale(optional)(default=en): supported mimesis localespython manage.py generatedata posts –num 5 –format yaml –locale fa examples models.pyclass Post(models.Model): title = models.Charfield(max_length=200) text = […]

Read more

Simple FIX protocol implementation for Python

FIX (Financial Information eXchange) Protocol is a widely-used, text-based protocol for interaction between parties in financial trading. Banks, brokers, clearing firms, exchanges, and other general market participants use FIX protocol for all phases of electronic trading. Typically, a FIX implementation exists as a FIX Engine: a standalone service that acts as a gateway for other applications (matching engines, trading algos, etc) and implements the FIX protocol. The most popular Open Source FIX engine is probably one of the versions of […]

Read more

A simple display manager app for the WaveShare 2.7in e-Paper Display

A simple display manager app for the WaveShare 2.7in e-Paper HAT Screens The app provides a number of screens that can be displayed on the e-paper HAT, and allows switching between them with the builtin buttons. The included screens are: uptime – a system info viewer affirmations – display positive affirmations (or whatever kind you want, really) fortune – shows a random fortune from the fortune database (requires the fortune-mod package) Install fortune-mod with this command: sudo apt install fortune-mod […]

Read more

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
1 484 485 486 487 488 943