barril VS pint

Compare barril vs pint and see what are their differences.

pint

Laravel Pint is an opinionated PHP code style fixer for minimalists. (by laravel)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
barril pint
2 13
36 2,680
- 0.8%
7.3 8.8
16 days ago 8 days ago
Python PHP
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

barril

Posts with mentions or reviews of barril. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-04.
  • Pint: Makes Units Easy -Python
    4 projects | news.ycombinator.com | 4 Sep 2021
    Internally the library has a "quantity type", which defines for a given quantity all the given conversions that are valid in the database and a "category" which is used so that you can create subsets of units which you want to consider valid for your application.

    It's helpful in the context that you want to restrict what's valid for such a category (see: https://github.com/ESSS/barril/blob/master/src/barril/units/... for what that means -- think of defining a "cylinder width" as a subset of "length").

    As a note, it's main use-case is NOT doing computations such as dividing/multiplying Scalars (albeit that's supported it does have some caveats -- so, while it also does dimensional analysis, it's really not the core functionality), rather the core functionality is making the conversions based on what's available in the unit database (so, you're not supposed to be creating units out of the unit database, rather, you want to collect input from the units you support and then make your conversions to other units you still support -- think of doing validation of input, converting to values in units expected by the user, defining a unit-system for input, converting to your internal unit-system for actual computation in C/C++, ...).

    So, I guess it depends on what you consider as core for a units library. As I mentioned, it's created for an Oil & Gas use-case -- albeit it's also used in other engineering-related projects -- where the units are all pretty much well mapped in the application and you're worried that you are getting into units you're not expecting and that'd actually be an error.

    p.s.: if you have specific use-cases which don't work as you expect, I suggest contacting the library maintainers -- once that was me, but it's been a while ;)

    p.s.: thanks for letting me know about how to deal with dimensionless units in pint (I wasn't aware of that).

pint

Posts with mentions or reviews of pint. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-13.
  • How to setup efm-langserver for pint formatter?
    3 projects | /r/neovim | 13 Jul 2023
    I've been using pint for formatting php files with null-ls.nvim. Few days ago null-ls.nvim has announced that the plugin will be archived in few months so I started migrating all my formatters and linter from null-ls to efm-langserver. I got other things such as prettier, black, isort, mypy, etc. working but can't get pint to work with php files: If I run pint via efm-langserver, everything is deleted from the buffer, and the saved file is formatted separately. How do I setup efm-langserver correctly to work with pint? Below is my config.yml for pint currently. yaml tools: pint: &pint format-command: "pint --no-interaction --quiet ${INPUT}" format-stdin: false languages: php: - <<: *pint Thank you.
  • Laravel Pint... aka Standards + 1
    1 project | /r/laravel | 27 Sep 2022
    Well, the rules are defined here: https://github.com/laravel/pint/blob/main/resources/presets/laravel.php
  • Laravel Pint v1.0 Released
    1 project | dev.to | 9 Aug 2022
    Be sure to check out the Pint documentation at https://github.com/laravel/pint. We hope you enjoy this new package. At Laravel, we're committed to providing you with the most robust and developer-friendly PHP experience in the world. Enjoy!
  • 7 Laravel Packages to Improve Coding Standards and Reduce Bugs
    10 projects | dev.to | 1 Aug 2022
    Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent. Pint is a new addition to the Laravel framework.
  • How do you feel about laravel/pint?
    3 projects | /r/laravel | 19 Jul 2022
  • How to Fix and Clean Code Style in laravel 9
    1 project | dev.to | 13 Jul 2022
    For details vist https://github.com/laravel/pint
  • Modern PHP practices... where to start, what to look out for?
    2 projects | /r/PHP | 24 Jun 2022
    Static Analysis Tools - there are a number of tools that help you to manage code style (PHPCS, PHP-CSFixer, and a new one, Laravel Pint), as well as tools to analyse the "correctness" of your code (Psalm, PHPstan, in particular LaraStan).
  • How to Add Laravel Pint to VS Code Formatter
    1 project | dev.to | 24 Jun 2022
    and as per me, Pint is the so far most sophisticated code formatter i have ever user in the reference of PHP. You can find more details about laravel/pint here.
  • Laravel Pint is a minimalist code style fixer for PHP
    1 project | news.ycombinator.com | 23 Jun 2022
    1 project | /r/programming | 23 Jun 2022

What are some alternatives?

When comparing barril and pint you can also consider the following projects:

pint - Operate and manipulate physical quantities in Python

larastan - ⚗️ Adds code analysis to Laravel improving developer productivity and code quality.