New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitsmiths-mettle

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitsmiths-mettle

A three tier systems code generator that targets serveral databases and languages

  • 2.2.9
  • Source
  • PyPI
  • Socket score

Maintainers
2

Mettle

Bitsmiths-Mettle is the supporting code generators and python libraries for the Mettle project.

See our repo and main README for more details!

Requirements

Python 3.10+

Installation

$ pip install bitsmiths-mettle

---> 100%

Change History

2.2.9

TypeDescription
FixFixed an exception priority issue with the mettle-psycopg driver where reset connections were being caught by the lock exception.

2.2.8

TypeDescription
NewThe mettle-sql-build entry point in the python package now accepts wild card inputs.

2.2.7

TypeDescription
FixPython database table generetor respects not null columns that are integers and floats properly for pydantic and dataclass generation.

2.2.6

TypeDescription
FixThe python encoded.databases[postgresql] driver was not handling null floats. Bug squashed.

2.2.5

TypeDescription
FixChanged PostgreSQL package dependency from postgres to postgresql.
FixThe python braze serializers now use isinstance instead of type when checking value types.

2.2.4

TypeDescription
FixImproved package dependencies, thank-you Bradley Kirton.
NewAdded a new optional global-settings.file-header setting to projects. Allows customization or removal or the generated header in all generated files.

2.2.3

TypeDescription
NewImplemented auto (reset) to database connections on failure for all python database drivers. (This excludes asynpg because it uses a pool that does it for us).
BugFixed a python async code generation issue, where some methods and with statements were not using await or async.

2.2.2

TypeDescription
FixFixed an import issue with the Braze TCP overload in python.

2.2.1

TypeDescription
FixApplied couplet identifier improvement to braze couplets on python.

2.2.0

TypeDescription
NewAdded a database_name() method to all db connections.
NewSelect one statements that fail, will now raise the new DBNotFound error code.
NewAdded psycopg3 database extension for python3.
NewAdded psycopg3 async database extension for python3.
NewPython generation for __slots__ added, requires python 3.10 and up.
NewAdded a must_exist optional parameter to the python generated fetch() methods which will raise an error if the fetch fails.
BreakingIn the python generated fetch_all() methods, renamed clearList to clear_list.
BreakingImproved the genartion of couplet identifier names. This may cause some couplets to be generated with differnt names.
BugForeign key, and unique key violations now proplerly thrown for all the python db drivers.

2.1.14

TypeDescription
NewAdded a new python generator option fetch.method. Options are c++ which is the legacy option and python which adds a fetch iterator method and creates a new object for each fetch instead of reusing the existing orec.
NewRemoved the __del__ dunder from the python DAO code generation as it is not needed.

2.1.13

TypeDescription
NewAngular makefile generators can now be dynamically extended with a different CC, and TARGS as well as have optional overwrite commands.
BugFixed configuration bug from the 2.1.12 where a null dataclass would cause a generation error.

2.1.12

TypeDescription
NewPython database and braze models can now be generated with (pydantic, or dataclass, or attrs) as an option.
NewPython database and braze models can now toggle (pk, serializer, dav, clear) features an and off.

2.1.11

TypeDescription
BugFixed a refactor of errCode to err_code that was not rippled through some of the base library code/

2.1.10

TypeDescription
ChangeGeneral typing improvements, and minor bug fixes.

License

This project is licensed under the terms of the MIT license.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc