I made this mating connector for a Dewalt 20V battery pack so I could use it in a battery-powered project. For printability I split it into two halves and glued them together.
I used ¼" spade terminals as the contacts, which can be glued into the pockets (although with the deforming from crimping they press-fit nicely without glue). I'm only accessing the battery + and - contacts, although apparently it's possible to roll your own your own balanced charger (see the link below) in which case you'll need the other contacts too.
PLEASE NOTE: Apparently under-voltage protection for these battery packs is provided in the tool, not the pack, so please plan accordingly!!! Lithium-ion batteries are dangerous! This info is to be used at your own risk!
Based loosely on this Dewalt battery pack model, however I did need to adjust some dimensions: https://grabcad.com/library/dewalt-dcb-battery-1
More info on pinouts, etc. can be found in this very helpful teardown: https://www.sevarg.net/2016/09/11/dewalt-20v-max-30ah-battery-pack/
I included a STEP file so this can be easily integrated into your project, and a Fusion 360 file is available. PLEASE BE CAREFUL!!!
The author hasn't provided the model origin yet.