


'''simple docstring'''



import re




def      _a     (						_lowercase :     str  ):





     '''simple docstring'''






     if len(re.findall('''[ATCG]'''      , _lowercase  )  ) != len(_lowercase  ):
          raise ValueError('''Invalid Strand'''  )

     return dna.translate(dna.maketrans('''ATCG'''      , '''TAGC'''  )  )


if __name__ == "__main__":
      import doctest

      doctest.testmod()



'''simple docstring'''



from argparse import ArgumentParser

from .env import EnvironmentCommand




def      _a     (						):





     '''simple docstring'''






     __UpperCAmelCase     :			Optional[Any]  							=      ArgumentParser('''Diffusers CLI tool'''      , usage='''diffusers-cli <command> [<args>]'''  )
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.add_subparsers(help='''diffusers-cli command helpers'''  )

     # Register commands
     EnvironmentCommand.register_subcommand(_lowercase  )

     # Let's go
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.parse_args()

     if not hasattr(_lowercase      , '''func'''  ):
          parser.print_help()
          exit(1  )

     # Run
     __UpperCAmelCase     :			Any  							=      args.func(_lowercase  )
     service.run()


if __name__ == "__main__":
      main()