A writ of habeas corpus, mandamus, or quo warranto may be ordered by the court only on petition. The proceedings may be tried summarily and the writ when ordered may be signed by the clerk under the seal of the court, or it may be issued and signed by the judge without further formality.
La. C.P. § 3781