It shall be unlawful to hire or lease for any purpose any convict, state or county, except as otherwise provided in this article.