Skip to content

sendgrid/library-automator

Repository files navigation

For automating docs (USAGE.md), unit tests and examples into our 7 SendGrid open source client libraries.

Python

Generate Tests

python app.py python tests > ./python/generated_files/unit_tests.py
cp ./python/generated_files/examples/unit_tests.md <path-to>/sendgrid-python/examples/test_sendgrid.py

Generate Docs (Usage.md)

python app.py python usage > ./python/generated_files/USAGE.md
cp ./python/generated_files/USAGE.md <path-to>/sendgrid-python/

Generate Examples

This will populate the python/generated_files/examples folder

python app.py python examples
cp -R ./python/generated_files/examples/ <path-to>/sendgrid-python/examples/

PHP

Generate Tests

python app.py php tests > ./php/generated_files/unit_tests.php

Generate Docs (Usage.md)

python app.py php usage > ./php/generated_files/USAGE.md
cp ./php/generated_files/USAGE.md <path-to>/sendgrid-php/

Generate Examples

This will populate the php/generated_files/examples folder

python app.py php examples
cp -R ./php/generated_files/examples/ <path-to>/sendgrid-php/examples/

Ruby

Generate Tests

python app.py ruby tests > ./ruby/generated_files/unit_tests.rb

Generate Docs (Usage.md)

python app.py ruby usage > ./ruby/generated_files/USAGE.md
cp ./ruby/generated_files/USAGE.md <path-to>/sendgrid-ruby/

Generate Examples

This will populate the ruby/generated_files/examples folder

python app.py ruby examples
cp -R ./ruby/generated_files/examples/ <path-to>/sendgrid-ruby/examples/

Java

Generate Tests

python app.py java tests > ./java/generated_files/unit_tests.java

Generate Docs (Usage.md)

python app.py java usage > ./java/generated_files/USAGE.md
cp ./java/generated_files/USAGE.md <path-to>/sendgrid-java/

Generate Examples

This will populate the java/generated_files/examples folder

python app.py java examples
cp -R ./java/generated_files/examples/ <path-to>/sendgrid-java/examples/

Node.js

Generate Tests

python app.py nodejs tests > ./nodejs/generated_files/unit_tests.js

Generate Docs (Usage.md)

python app.py nodejs usage > ./nodejs/generated_files/USAGE.md
cp ./nodejs/generated_files/USAGE.md <path-to>/sendgrid-nodejs/

Generate Examples

This will populate the nodejs/generated_files/examples folder

python app.py nodejs examples
cp -R ./nodejs/generated_files/examples/ <path-to>/sendgrid-nodejs/examples/

Csharp

Generate Tests

python app.py csharp tests > ./csharp/generated_files/unit_tests.cs

Generate Docs (Usage.md)

python app.py csharp usage > ./csharp/generated_files/USAGE.md
cp ./csharp/generated_files/USAGE.md <path-to>/sendgrid-csharp/

Generate Examples

This will populate the csharp/generated_files/examples folder

python app.py csharp examples
cp -R ./csharp/generated_files/examples/ <path-to>/sendgrid-csharp/examples/

Go

Generate Tests

python app.py go tests > ./go/generated_files/unit_tests.go

Generate Docs (Usage.md)

python app.py go usage > ./go/generated_files/USAGE.md
cp ./go/generated_files/USAGE.md <path-to>/sendgrid-go/

Generate Examples

This will populate the go/generated_files/examples folder

python app.py go examples
cp -R ./go/generated_files/examples/ <path-to>/sendgrid-go/examples/

Tests

python -m unittest discover -v

About

For automating v3 endpoints into our 7 libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published