Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from faker import providers
- class MicroserviceProvider(providers.BaseProvider):
- def microservice(self):
- return ''.join([
- random.choice([
- 'augmentation',
- 'auth',
- 'authorisation',
- 'cloud',
- 'contact',
- 'error',
- 'fraud',
- 'fulfilment',
- 'legacy',
- 'order',
- 'payment',
- 'promotion',
- 'sales',
- 'user',
- ]),
- random.choice(['', '-', '_']),
- random.choice([
- 'api',
- 'bridge',
- 'manager',
- 'platform',
- 'service',
- ]),
- ])
Add Comment
Please, Sign In to add comment